2021-04-09 10:42:49 +02:00
|
|
|
(tag_name) @tag
|
2024-08-09 17:26:19 +02:00
|
|
|
(erroneous_end_tag_name) @error
|
2021-04-09 10:42:49 +02:00
|
|
|
(doctype) @constant
|
|
|
|
(attribute_name) @attribute
|
|
|
|
(comment) @comment
|
|
|
|
|
2024-08-09 17:26:19 +02:00
|
|
|
((attribute
|
|
|
|
(attribute_name) @_attr
|
|
|
|
(quoted_attribute_value (attribute_value) @markup.link.url))
|
|
|
|
(#any-of? @_attr "href" "src"))
|
|
|
|
|
|
|
|
((element
|
|
|
|
(start_tag
|
|
|
|
(tag_name) @_tag)
|
|
|
|
(text) @markup.link.label)
|
|
|
|
(#eq? @_tag "a"))
|
|
|
|
|
|
|
|
(attribute [(attribute_value) (quoted_attribute_value)] @string)
|
|
|
|
|
|
|
|
((element
|
|
|
|
(start_tag
|
|
|
|
(tag_name) @_tag)
|
|
|
|
(text) @markup.bold)
|
|
|
|
(#any-of? @_tag "strong" "b"))
|
|
|
|
|
|
|
|
((element
|
|
|
|
(start_tag
|
|
|
|
(tag_name) @_tag)
|
|
|
|
(text) @markup.italic)
|
|
|
|
(#any-of? @_tag "em" "i"))
|
|
|
|
|
|
|
|
((element
|
|
|
|
(start_tag
|
|
|
|
(tag_name) @_tag)
|
|
|
|
(text) @markup.strikethrough)
|
|
|
|
(#any-of? @_tag "s" "del"))
|
2022-06-28 17:09:42 +02:00
|
|
|
|
2021-04-09 10:42:49 +02:00
|
|
|
[
|
|
|
|
"<"
|
|
|
|
">"
|
|
|
|
"</"
|
2022-06-28 17:09:42 +02:00
|
|
|
"/>"
|
2022-11-20 19:51:58 +01:00
|
|
|
"<!"
|
2021-04-09 10:42:49 +02:00
|
|
|
] @punctuation.bracket
|
2022-06-28 17:09:42 +02:00
|
|
|
|
|
|
|
"=" @punctuation.delimiter
|