mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
feat(rasi): Highlight captures similar to CSS (#6507)
This commit is contained in:
parent
28a914eb57
commit
df111f886c
2 changed files with 8 additions and 7 deletions
|
@ -80,17 +80,16 @@
|
|||
(angle_unit)
|
||||
(integer_distance_unit)
|
||||
(float_distance_unit)
|
||||
] @type
|
||||
] @string
|
||||
|
||||
(percentage) @number
|
||||
|
||||
(percentage
|
||||
"%" @type)
|
||||
"%" @string)
|
||||
|
||||
[
|
||||
(global_selector)
|
||||
(id_selector)
|
||||
] @module
|
||||
(global_selector) @character.special
|
||||
|
||||
(id_selector) @constant
|
||||
|
||||
(id_selector_view
|
||||
[
|
||||
|
@ -136,4 +135,4 @@
|
|||
"env" @function.builtin
|
||||
(identifier) @variable)
|
||||
|
||||
(property_name) @variable
|
||||
(property_name) @property
|
||||
|
|
2
queries/rasi/injections.scm
Normal file
2
queries/rasi/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
Loading…
Reference in a new issue