2021-04-09 12:42:49 +04:00
|
|
|
(comment) @comment
|
|
|
|
|
|
|
|
(tag_name) @tag
|
|
|
|
(nesting_selector) @tag
|
|
|
|
(universal_selector) @tag
|
|
|
|
|
|
|
|
"~" @operator
|
|
|
|
">" @operator
|
|
|
|
"+" @operator
|
|
|
|
"-" @operator
|
|
|
|
"*" @operator
|
|
|
|
"/" @operator
|
|
|
|
"=" @operator
|
|
|
|
"^=" @operator
|
|
|
|
"|=" @operator
|
|
|
|
"~=" @operator
|
|
|
|
"$=" @operator
|
|
|
|
"*=" @operator
|
|
|
|
|
|
|
|
"and" @operator
|
|
|
|
"or" @operator
|
|
|
|
"not" @operator
|
|
|
|
"only" @operator
|
|
|
|
|
|
|
|
(attribute_selector (plain_value) @string)
|
|
|
|
(pseudo_element_selector (tag_name) @attribute)
|
|
|
|
(pseudo_class_selector (class_name) @attribute)
|
|
|
|
|
2021-11-03 07:00:52 +04:00
|
|
|
(class_name) @variable.other.member
|
|
|
|
(id_name) @variable.other.member
|
|
|
|
(namespace_name) @variable.other.member
|
|
|
|
(property_name) @variable.other.member
|
|
|
|
(feature_name) @variable.other.member
|
2021-04-09 12:42:49 +04:00
|
|
|
|
|
|
|
(attribute_name) @attribute
|
|
|
|
|
|
|
|
(function_name) @function
|
|
|
|
|
|
|
|
((property_name) @variable
|
|
|
|
(#match? @variable "^--"))
|
|
|
|
((plain_value) @variable
|
|
|
|
(#match? @variable "^--"))
|
|
|
|
|
|
|
|
"@media" @keyword
|
|
|
|
"@import" @keyword
|
|
|
|
"@charset" @keyword
|
|
|
|
"@namespace" @keyword
|
|
|
|
"@supports" @keyword
|
|
|
|
"@keyframes" @keyword
|
|
|
|
(at_keyword) @keyword
|
|
|
|
(to) @keyword
|
|
|
|
(from) @keyword
|
|
|
|
(important) @keyword
|
|
|
|
|
|
|
|
(string_value) @string
|
|
|
|
(color_value) @string.special
|
|
|
|
|
2021-11-03 07:00:52 +04:00
|
|
|
(integer_value) @constant.numeric.integer
|
|
|
|
(float_value) @constant.numeric.float
|
2021-04-09 12:42:49 +04:00
|
|
|
(unit) @type
|
|
|
|
|
|
|
|
"#" @punctuation.delimiter
|
|
|
|
"," @punctuation.delimiter
|
|
|
|
":" @punctuation.delimiter
|