refactor: use eq

This commit is contained in:
elianiva 2021-02-11 15:00:14 +07:00 committed by Stephan Seitz
parent 17a74e2055
commit 72d38fc44b
2 changed files with 4 additions and 4 deletions

View file

@ -17,18 +17,18 @@
(#match? @_tag "^(s|del)$"))
((element (start_tag (tag_name) @_tag) (text) @text.underline)
(#match? @_tag "^u$"))
(#eq? @_tag "u"))
((element (start_tag (tag_name) @_tag) (text) @text.literal)
(#match? @_tag "^(code|kbd)$"))
((element (start_tag (tag_name) @_tag) (text) @text.uri)
(#match? @_tag "^a$"))
(#eq? @_tag "a"))
((attribute
(attribute_name) @_attr
(quoted_attribute_value (attribute_value) @text.uri))
(#match? @_attr "^href$"))
(#eq? @_attr "href"))
[
(special_block_keyword)

View file

@ -4,7 +4,7 @@
((attribute
(attribute_name) @_attr
(quoted_attribute_value (attribute_value) @css))
(#match? @_attr "^style$"))
(#eq? @_attr "style"))
((script_element
(raw_text) @javascript))