glimra

Types

pub opaque type Config
pub type SyntaxHighlightingError {
  UnsupportedLanguage(language: String)
  TreeSitterError
  UnmatchedHighlightEvents
}

Constructors

  • UnsupportedLanguage(language: String)
  • TreeSitterError
  • UnmatchedHighlightEvents

Functions

pub fn block_class(
  config config: Config,
  class class: String,
) -> Config
pub fn line_class(
  config config: Config,
  class class: String,
) -> Config
pub fn syntax_highlight(
  config config: Config,
  source source: String,
) -> Result(Element(Nil), SyntaxHighlightingError)
pub fn syntax_highlighter(language language: String) -> Config
Search Document