Add color for 'variable.special' and use it in highlight queries
This commit is contained in:
parent
ec76146a23
commit
070c4bc503
6 changed files with 17 additions and 10 deletions
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
(field_identifier) @property
|
(field_identifier) @property
|
||||||
(statement_identifier) @label
|
(statement_identifier) @label
|
||||||
(this) @variable.builtin
|
(this) @variable.special
|
||||||
|
|
||||||
[
|
[
|
||||||
"break"
|
"break"
|
||||||
|
|
|
@ -41,10 +41,13 @@
|
||||||
|
|
||||||
(function_name) @function
|
(function_name) @function
|
||||||
|
|
||||||
((property_name) @variable
|
(
|
||||||
(#match? @variable "^--"))
|
[
|
||||||
((plain_value) @variable
|
(property_name)
|
||||||
(#match? @variable "^--"))
|
(plain_value)
|
||||||
|
] @variable.special
|
||||||
|
(#match? @variable.special "^--")
|
||||||
|
)
|
||||||
|
|
||||||
[
|
[
|
||||||
"@media"
|
"@media"
|
||||||
|
|
|
@ -55,8 +55,8 @@
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
|
|
||||||
(this) @variable.builtin
|
(this) @variable.special
|
||||||
(super) @variable.builtin
|
(super) @variable.special
|
||||||
|
|
||||||
[
|
[
|
||||||
(true)
|
(true)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(type_identifier) @type
|
(type_identifier) @type
|
||||||
(primitive_type) @type.builtin
|
(primitive_type) @type.builtin
|
||||||
(self) @variable.builtin
|
(self) @variable.special
|
||||||
(field_identifier) @property
|
(field_identifier) @property
|
||||||
|
|
||||||
(call_expression
|
(call_expression
|
||||||
|
|
|
@ -55,8 +55,8 @@
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
|
|
||||||
(this) @variable.builtin
|
(this) @variable.special
|
||||||
(super) @variable.builtin
|
(super) @variable.special
|
||||||
|
|
||||||
[
|
[
|
||||||
(true)
|
(true)
|
||||||
|
|
|
@ -185,6 +185,10 @@ export function createTheme(
|
||||||
color: sample(ramps.neutral, 7),
|
color: sample(ramps.neutral, 7),
|
||||||
weight: fontWeights.normal,
|
weight: fontWeights.normal,
|
||||||
},
|
},
|
||||||
|
"variable.special": {
|
||||||
|
color: sample(ramps.blue, 0.80),
|
||||||
|
weight: fontWeights.normal,
|
||||||
|
},
|
||||||
comment: {
|
comment: {
|
||||||
color: sample(ramps.neutral, 5),
|
color: sample(ramps.neutral, 5),
|
||||||
weight: fontWeights.normal,
|
weight: fontWeights.normal,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue