mirror of
https://github.com/alecthomas/chroma.git
synced 2025-11-29 22:47:29 +02:00
Support for highlighting ranges of lines.
This commit is contained in:
10
types.go
10
types.go
@@ -15,13 +15,21 @@ type TokenType int
|
||||
|
||||
// Meta token types.
|
||||
const (
|
||||
// Default background style.
|
||||
Background TokenType = -1 - iota
|
||||
// Line numbers in output.
|
||||
LineNumbers
|
||||
// Line higlight style.
|
||||
LineHighlight
|
||||
// Character highlight style.
|
||||
Highlight
|
||||
Escape
|
||||
// Input that could not be tokenised.
|
||||
Error
|
||||
// Other is used by the Delegate lexer to indicate which tokens should be handled by the delegate.
|
||||
Other
|
||||
// No highlighting.
|
||||
None
|
||||
// Final token.
|
||||
EOF
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user