1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-11-23 22:24:39 +02:00

Switch to github.com/dlclark/regexp2.

This makes translating Pygments lexers much much simpler (and possible).
This commit is contained in:
Alec Thomas
2017-09-18 11:16:44 +10:00
parent 86bda70acd
commit a10fd0a23d
139 changed files with 9588 additions and 875 deletions

View File

@@ -28,6 +28,7 @@ const (
Escape
Error
Other
None
EOF
)
@@ -55,13 +56,16 @@ const (
NameException
NameFunction
NameFunctionMagic
NameProperty
NameKeyword
NameLabel
NameNamespace
NameOther
NameOperator
NameOther
NamePseudo
NameProperty
NameTag
NameVariable
NameVariableAnonymous
NameVariableClass
NameVariableGlobal
NameVariableInstance
@@ -72,13 +76,16 @@ const (
const (
Literal TokenType = 3000 + iota
LiteralDate
LiteralOther
)
// Strings.
const (
LiteralString TokenType = 3100 + iota
LiteralStringAffix
LiteralStringAtom
LiteralStringBacktick
LiteralStringBoolean
LiteralStringChar
LiteralStringDelimiter
LiteralStringDoc
@@ -86,11 +93,11 @@ const (
LiteralStringEscape
LiteralStringHeredoc
LiteralStringInterpol
LiteralStringName
LiteralStringOther
LiteralStringRegex
LiteralStringSingle
LiteralStringSymbol
LiteralStringName
)
// Literals.
@@ -150,6 +157,8 @@ const (
const (
Text TokenType = 8000 + iota
TextWhitespace
TextSymbol
TextPunctuation
)
// Aliases.