mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
highlights(css): use more specific groups
This commit is contained in:
parent
68c647f13b
commit
c2d9cf9926
1 changed files with 6 additions and 5 deletions
|
|
@ -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 "^--"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue