1
0
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:
Alec Thomas
2017-09-20 14:15:06 +10:00
parent 3f230ec717
commit a5637e60b2
5 changed files with 165 additions and 118 deletions

View File

@@ -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
)