Skip to main content

Crate rouge_syntax

Crate rouge_syntax 

Source
Expand description

Portable Tree-sitter syntax highlighting and symbol tags.

Structs§

DocumentHighlights
FontStyle
HighlightId
HighlightLine
HighlightSpan
A highlighted, UTF-8-safe byte range into the supplied source.
LineSpan
SourceSyntax
SymbolDefinition
SymbolReference
SymbolTags
SyntaxStream
SyntaxStreamUpdate
SyntaxStyle
Style assigned to a Tree-sitter capture name.
SyntaxTheme
SyntaxWorkStats

Enums§

SymbolKind
SyntaxError

Constants§

MAX_SOURCE_BYTES

Functions§

analyze
capture_style
has_symbols
languages
resolve_language