highlights(css): use more specific groups

This commit is contained in:
ObserverOfTime 2022-10-22 12:30:05 +03:00
parent 68c647f13b
commit c2d9cf9926

View file

@ -1,6 +1,5 @@
[ [
"@media" "@media"
"@import"
"@charset" "@charset"
"@namespace" "@namespace"
"@supports" "@supports"
@ -8,9 +7,10 @@
(at_keyword) (at_keyword)
(to) (to)
(from) (from)
(important)
] @keyword ] @keyword
"@import" @include
(comment) @comment @spell (comment) @comment @spell
[ [
@ -40,6 +40,7 @@
"only" "only"
] @operator ] @operator
(important) @type.qualifier
(attribute_selector (plain_value) @string) (attribute_selector (plain_value) @string)
(pseudo_element_selector "::" (tag_name) @property) (pseudo_element_selector "::" (tag_name) @property)
@ -48,15 +49,15 @@
[ [
(class_name) (class_name)
(id_name) (id_name)
(namespace_name)
(property_name) (property_name)
(feature_name) (feature_name)
(attribute_name) (attribute_name)
] @property ] @property
(namespace_name) @namespace
((property_name) @type ((property_name) @type.definition
(#match? @type "^--")) (#match? @type.definition "^--"))
((plain_value) @type ((plain_value) @type
(#match? @type "^--")) (#match? @type "^--"))