Skip to content

Commit 2cbcfa9

Browse files
committed
fix: a bunch of styles did not correctly fallback to parent styles
Fixes #1076
1 parent 8f4cf56 commit 2cbcfa9

File tree

2 files changed

+134
-122
lines changed

2 files changed

+134
-122
lines changed

tokentype_enumer.go

Lines changed: 117 additions & 117 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types.go

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,11 @@ const (
6262
const (
6363
Name TokenType = 2000 + iota
6464
NameAttribute
65-
NameBuiltin
66-
NameBuiltinPseudo
6765
NameClass
6866
NameConstant
6967
NameDecorator
7068
NameEntity
7169
NameException
72-
NameFunction
73-
NameFunctionMagic
7470
NameKeyword
7571
NameLabel
7672
NameNamespace
@@ -79,14 +75,30 @@ const (
7975
NamePseudo
8076
NameProperty
8177
NameTag
82-
NameVariable
78+
)
79+
80+
// Builtin names.
81+
const (
82+
NameBuiltin TokenType = 2100 + iota
83+
NameBuiltinPseudo
84+
)
85+
86+
// Variable names.
87+
const (
88+
NameVariable TokenType = 2200 + iota
8389
NameVariableAnonymous
8490
NameVariableClass
8591
NameVariableGlobal
8692
NameVariableInstance
8793
NameVariableMagic
8894
)
8995

96+
// Function names.
97+
const (
98+
NameFunction TokenType = 2300 + iota
99+
NameFunctionMagic
100+
)
101+
90102
// Literals.
91103
const (
92104
Literal TokenType = 3000 + iota

0 commit comments

Comments
 (0)