2025-01-21 09:25:08 +01:00
|
|
|
(comment) @comment @spell
|
|
|
|
|
|
|
|
|
|
(tag_id) @keyword.function
|
|
|
|
|
|
|
|
|
|
(tag_class) @keyword.type
|
|
|
|
|
|
|
|
|
|
(injector) @keyword.import
|
|
|
|
|
|
|
|
|
|
(directive_sign) @keyword.directive
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(string_start)
|
|
|
|
|
(string_content)
|
|
|
|
|
(string_end)
|
|
|
|
|
] @string
|
|
|
|
|
|
|
|
|
|
(bracket) @punctuation.bracket
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"#{"
|
|
|
|
|
"}"
|
|
|
|
|
] @punctuation.special
|
|
|
|
|
|
|
|
|
|
(delimiter) @tag.delimiter
|
|
|
|
|
|
|
|
|
|
(parameter_name) @variable.parameter
|
|
|
|
|
|
|
|
|
|
(parameter_value) @tag.attribute
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(text_inline)
|
|
|
|
|
(text_block)
|
|
|
|
|
] @markup.raw.block
|
|
|
|
|
|
|
|
|
|
; Markup tags
|
|
|
|
|
; https://developer.mozilla.org/en-US/docs/Web/HTML/Element
|
|
|
|
|
(tag_name) @tag
|
|
|
|
|
|
|
|
|
|
((tag_name) @tag.builtin
|
|
|
|
|
(#any-of? @tag.builtin
|
|
|
|
|
"doctype" "html" "head" "title" "base" "link" "meta" "style" "body" "article" "section" "nav"
|
|
|
|
|
"aside" "hgroup" "footer" "address" "p" "hr" "pre" "blockquote" "menu" "figure" "figcaption"
|
|
|
|
|
"main" "div" "small" "s" "cite" "q" "dfn" "abbr" "rt" "rp" "data" "time" "code" "var" "samp"
|
|
|
|
|
"kbd" "sub" "sup" "u" "mark" "bdi" "bdo" "span" "br" "wbr" "ins" "del" "picture" "source" "img"
|
|
|
|
|
"iframe" "embed" "object" "param" "video" "audio" "track" "map" "area" "table" "caption"
|
|
|
|
|
"colgroup" "col" "tbody" "thead" "tfoot" "tr" "td" "th" "form" "label" "input" "button" "select"
|
|
|
|
|
"datalist" "optgroup" "option" "textarea" "output" "progress" "meter" "fieldset" "legend"
|
|
|
|
|
"details" "summary" "dialog" "script" "noscript" "template" "slot" "canvas"))
|
|
|
|
|
|
|
|
|
|
((tag_name) @markup.strong
|
|
|
|
|
(#any-of? @markup.strong "b" "strong"))
|
|
|
|
|
|
|
|
|
|
((tag_name) @markup.italic
|
|
|
|
|
(#any-of? @markup.italic "i" "em"))
|
|
|
|
|
|
|
|
|
|
((tag_name) @markup.link
|
2025-10-29 18:51:42 -07:00
|
|
|
(#eq? @markup.link "a"))
|
2025-01-21 09:25:08 +01:00
|
|
|
|
|
|
|
|
; Headings
|
|
|
|
|
((tag_name) @markup.heading
|
2025-10-29 18:51:42 -07:00
|
|
|
(#eq? @markup.heading "header"))
|
2025-01-21 09:25:08 +01:00
|
|
|
|
|
|
|
|
((tag_name) @markup.heading.1
|
2025-10-29 18:51:42 -07:00
|
|
|
(#eq? @markup.heading.1 "h1"))
|
2025-01-21 09:25:08 +01:00
|
|
|
|
|
|
|
|
((tag_name) @markup.heading.2
|
2025-10-29 18:51:42 -07:00
|
|
|
(#eq? @markup.heading.2 "h2"))
|
2025-01-21 09:25:08 +01:00
|
|
|
|
|
|
|
|
((tag_name) @markup.heading.3
|
2025-10-29 18:51:42 -07:00
|
|
|
(#eq? @markup.heading.3 "h3"))
|
2025-01-21 09:25:08 +01:00
|
|
|
|
|
|
|
|
((tag_name) @markup.heading.4
|
2025-10-29 18:51:42 -07:00
|
|
|
(#eq? @markup.heading.4 "h4"))
|
2025-01-21 09:25:08 +01:00
|
|
|
|
|
|
|
|
((tag_name) @markup.heading.5
|
2025-10-29 18:51:42 -07:00
|
|
|
(#eq? @markup.heading.5 "h5"))
|
2025-01-21 09:25:08 +01:00
|
|
|
|
|
|
|
|
((tag_name) @markup.heading.6
|
2025-10-29 18:51:42 -07:00
|
|
|
(#eq? @markup.heading.6 "h6"))
|
2025-01-21 09:25:08 +01:00
|
|
|
|
|
|
|
|
((tag_name) @markup.list
|
|
|
|
|
(#any-of? @markup.list "ul" "ol" "li" "dl" "dt" "dd"))
|