forked from Mirrors/helix
Update CSS syntax highlighting (#4882)
parent
583c2a5456
commit
bf908cc4a1
@ -1,64 +1,85 @@
|
|||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
(tag_name) @tag
|
[
|
||||||
(nesting_selector) @tag
|
(tag_name)
|
||||||
(universal_selector) @tag
|
(nesting_selector)
|
||||||
|
(universal_selector)
|
||||||
|
] @tag
|
||||||
|
|
||||||
"~" @operator
|
[
|
||||||
">" @operator
|
"~"
|
||||||
"+" @operator
|
">"
|
||||||
"-" @operator
|
"+"
|
||||||
"*" @operator
|
"-"
|
||||||
"/" @operator
|
"*"
|
||||||
"=" @operator
|
"/"
|
||||||
"^=" @operator
|
"="
|
||||||
"|=" @operator
|
"^="
|
||||||
"~=" @operator
|
"|="
|
||||||
"$=" @operator
|
"~="
|
||||||
"*=" @operator
|
"$="
|
||||||
|
"*="
|
||||||
|
] @operator
|
||||||
|
|
||||||
"and" @operator
|
[
|
||||||
"or" @operator
|
"and"
|
||||||
"not" @operator
|
"not"
|
||||||
"only" @operator
|
"only"
|
||||||
|
"or"
|
||||||
(attribute_selector (plain_value) @string)
|
] @keyword.operator
|
||||||
(pseudo_element_selector (tag_name) @attribute)
|
|
||||||
(pseudo_class_selector (class_name) @attribute)
|
|
||||||
|
|
||||||
(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
|
|
||||||
|
|
||||||
(attribute_name) @attribute
|
|
||||||
|
|
||||||
(function_name) @function
|
|
||||||
|
|
||||||
((property_name) @variable
|
((property_name) @variable
|
||||||
(#match? @variable "^--"))
|
(#match? @variable "^--"))
|
||||||
((plain_value) @variable
|
((plain_value) @variable
|
||||||
(#match? @variable "^--"))
|
(#match? @variable "^--"))
|
||||||
|
|
||||||
"@media" @keyword
|
(attribute_name) @attribute
|
||||||
"@import" @keyword
|
(class_name) @label
|
||||||
"@charset" @keyword
|
(feature_name) @variable.other.member
|
||||||
"@namespace" @keyword
|
(function_name) @function
|
||||||
"@supports" @keyword
|
(id_name) @label
|
||||||
"@keyframes" @keyword
|
(namespace_name) @namespace
|
||||||
(at_keyword) @keyword
|
(property_name) @variable.other.member
|
||||||
(to) @keyword
|
|
||||||
(from) @keyword
|
[
|
||||||
(important) @keyword
|
"@charset"
|
||||||
|
"@import"
|
||||||
|
"@keyframes"
|
||||||
|
"@media"
|
||||||
|
"@namespace"
|
||||||
|
"@supports"
|
||||||
|
(at_keyword)
|
||||||
|
(from)
|
||||||
|
(important)
|
||||||
|
(to)
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
[
|
||||||
|
"#"
|
||||||
|
"."
|
||||||
|
] @punctuation
|
||||||
|
|
||||||
(string_value) @string
|
(string_value) @string
|
||||||
|
((color_value) "#") @string.special
|
||||||
(color_value) @string.special
|
(color_value) @string.special
|
||||||
|
|
||||||
(integer_value) @constant.numeric.integer
|
(integer_value) @constant.numeric.integer
|
||||||
(float_value) @constant.numeric.float
|
(float_value) @constant.numeric.float
|
||||||
(unit) @type
|
|
||||||
|
|
||||||
"#" @punctuation.delimiter
|
[
|
||||||
"," @punctuation.delimiter
|
")"
|
||||||
":" @punctuation.delimiter
|
"("
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
[
|
||||||
|
","
|
||||||
|
";"
|
||||||
|
":"
|
||||||
|
"::"
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
(plain_value) @constant
|
||||||
|
Loading…
Reference in New Issue