mirror of
https://github.com/alecthomas/chroma.git
synced 2025-11-25 22:32:32 +02:00
fix: a bunch of styles did not correctly fallback to parent styles
Fixes #1076
This commit is contained in:
22
types.go
22
types.go
@@ -62,15 +62,11 @@ const (
|
||||
const (
|
||||
Name TokenType = 2000 + iota
|
||||
NameAttribute
|
||||
NameBuiltin
|
||||
NameBuiltinPseudo
|
||||
NameClass
|
||||
NameConstant
|
||||
NameDecorator
|
||||
NameEntity
|
||||
NameException
|
||||
NameFunction
|
||||
NameFunctionMagic
|
||||
NameKeyword
|
||||
NameLabel
|
||||
NameNamespace
|
||||
@@ -79,7 +75,17 @@ const (
|
||||
NamePseudo
|
||||
NameProperty
|
||||
NameTag
|
||||
NameVariable
|
||||
)
|
||||
|
||||
// Builtin names.
|
||||
const (
|
||||
NameBuiltin TokenType = 2100 + iota
|
||||
NameBuiltinPseudo
|
||||
)
|
||||
|
||||
// Variable names.
|
||||
const (
|
||||
NameVariable TokenType = 2200 + iota
|
||||
NameVariableAnonymous
|
||||
NameVariableClass
|
||||
NameVariableGlobal
|
||||
@@ -87,6 +93,12 @@ const (
|
||||
NameVariableMagic
|
||||
)
|
||||
|
||||
// Function names.
|
||||
const (
|
||||
NameFunction TokenType = 2300 + iota
|
||||
NameFunctionMagic
|
||||
)
|
||||
|
||||
// Literals.
|
||||
const (
|
||||
Literal TokenType = 3000 + iota
|
||||
|
||||
Reference in New Issue
Block a user