add treesitter highlights
This commit is contained in:
parent
a022178884
commit
7b13d73648
3 changed files with 35 additions and 0 deletions
17
after/queries/html/highlights.scm
Normal file
17
after/queries/html/highlights.scm
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @ClassNameAttribute (#eq? @ClassNameAttribute "class")
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @CssClassName )))
|
||||
|
||||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @IdAttribute (#eq? @IdAttribute "id")
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @CssIdentifier )))
|
||||
|
||||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @DataAttribute (#match? @DataAttribute "^data-")
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @DataAttributeValue )))
|
||||
Loading…
Add table
Add a link
Reference in a new issue