2021-09-17 04:04:55 +02:00
|
|
|
; Special identifiers
|
|
|
|
;--------------------
|
|
|
|
|
|
|
|
; TODO:
|
|
|
|
((element (start_tag (tag_name) @_tag) (text) @markup.heading)
|
|
|
|
(#match? @_tag "^(h[0-9]|title)$"))
|
|
|
|
|
|
|
|
((element (start_tag (tag_name) @_tag) (text) @markup.bold)
|
|
|
|
(#match? @_tag "^(strong|b)$"))
|
|
|
|
|
|
|
|
((element (start_tag (tag_name) @_tag) (text) @markup.italic)
|
|
|
|
(#match? @_tag "^(em|i)$"))
|
|
|
|
|
|
|
|
; ((element (start_tag (tag_name) @_tag) (text) @markup.strike)
|
|
|
|
; (#match? @_tag "^(s|del)$"))
|
|
|
|
|
|
|
|
((element (start_tag (tag_name) @_tag) (text) @markup.underline)
|
|
|
|
(#eq? @_tag "u"))
|
|
|
|
|
|
|
|
((element (start_tag (tag_name) @_tag) (text) @markup.inline)
|
|
|
|
(#match? @_tag "^(code|kbd)$"))
|
|
|
|
|
2021-12-18 19:35:43 +01:00
|
|
|
((element (start_tag (tag_name) @_tag) (text) @markup.link.url)
|
2021-09-17 04:04:55 +02:00
|
|
|
(#eq? @_tag "a"))
|
|
|
|
|
|
|
|
((attribute
|
|
|
|
(attribute_name) @_attr
|
2021-12-18 19:35:43 +01:00
|
|
|
(quoted_attribute_value (attribute_value) @markup.link.url))
|
2021-09-17 04:04:55 +02:00
|
|
|
(#match? @_attr "^(href|src)$"))
|
|
|
|
|
|
|
|
(tag_name) @tag
|
2021-11-03 04:00:52 +01:00
|
|
|
(attribute_name) @variable.other.member
|
2021-09-17 04:04:55 +02:00
|
|
|
(erroneous_end_tag_name) @error
|
|
|
|
(comment) @comment
|
|
|
|
|
|
|
|
[
|
|
|
|
(attribute_value)
|
|
|
|
(quoted_attribute_value)
|
|
|
|
] @string
|
|
|
|
|
|
|
|
[
|
|
|
|
(text)
|
|
|
|
(raw_text_expr)
|
|
|
|
] @none
|
|
|
|
|
|
|
|
[
|
|
|
|
(special_block_keyword)
|
|
|
|
(then)
|
|
|
|
(as)
|
|
|
|
] @keyword
|
|
|
|
|
|
|
|
[
|
|
|
|
"{"
|
|
|
|
"}"
|
|
|
|
] @punctuation.brackets
|
|
|
|
|
|
|
|
"=" @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
"<"
|
|
|
|
">"
|
|
|
|
"</"
|
|
|
|
"/>"
|
|
|
|
"#"
|
|
|
|
":"
|
|
|
|
"/"
|
|
|
|
"@"
|
|
|
|
] @punctuation.definition.tag
|