mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Use eq?
This commit is contained in:
parent
b86555d9c3
commit
76a7000384
2 changed files with 4 additions and 4 deletions
|
|
@ -19,18 +19,18 @@
|
||||||
(#match? @_tag "^(s|del)$"))
|
(#match? @_tag "^(s|del)$"))
|
||||||
|
|
||||||
((element (start_tag (tag_name) @_tag) (text) @text.underline)
|
((element (start_tag (tag_name) @_tag) (text) @text.underline)
|
||||||
(#match? @_tag "^u$"))
|
(#eq? @_tag "u"))
|
||||||
|
|
||||||
((element (start_tag (tag_name) @_tag) (text) @text.literal)
|
((element (start_tag (tag_name) @_tag) (text) @text.literal)
|
||||||
(#match? @_tag "^(code|kbd)$"))
|
(#match? @_tag "^(code|kbd)$"))
|
||||||
|
|
||||||
((element (start_tag (tag_name) @_tag) (text) @text.uri)
|
((element (start_tag (tag_name) @_tag) (text) @text.uri)
|
||||||
(#match? @_tag "^a$"))
|
(#eq? @_tag "a"))
|
||||||
|
|
||||||
((attribute
|
((attribute
|
||||||
(attribute_name) @_attr
|
(attribute_name) @_attr
|
||||||
(quoted_attribute_value (attribute_value) @text.uri))
|
(quoted_attribute_value (attribute_value) @text.uri))
|
||||||
(#match? @_attr "^href$"))
|
(#eq? @_attr "href"))
|
||||||
|
|
||||||
"=" @operator
|
"=" @operator
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
((attribute
|
((attribute
|
||||||
(attribute_name) @_attr
|
(attribute_name) @_attr
|
||||||
(quoted_attribute_value (attribute_value) @css))
|
(quoted_attribute_value (attribute_value) @css))
|
||||||
(#match? @_attr "^style$"))
|
(#eq? @_attr "style"))
|
||||||
|
|
||||||
((script_element
|
((script_element
|
||||||
(raw_text) @javascript))
|
(raw_text) @javascript))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue