2024-10-15 12:04:13 -04:00
|
|
|
; inherits: html_tags
|
|
|
|
|
|
|
|
|
|
(doctype) @constant
|
|
|
|
|
|
|
|
|
|
"<!" @tag.delimiter
|
2024-02-19 00:00:07 +09:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
"---" @punctuation.delimiter
|
2022-04-07 20:34:19 +08:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
"{"
|
|
|
|
|
"}"
|
|
|
|
|
] @punctuation.special
|
2023-11-27 21:11:28 +08:00
|
|
|
|
|
|
|
|
; custom components get `@type` highlighting
|
2024-01-06 15:05:50 +09:00
|
|
|
((start_tag
|
|
|
|
|
(tag_name) @type)
|
|
|
|
|
(#lua-match? @type "^[A-Z]"))
|
|
|
|
|
|
|
|
|
|
((end_tag
|
|
|
|
|
(tag_name) @type)
|
|
|
|
|
(#lua-match? @type "^[A-Z]"))
|
|
|
|
|
|
2024-11-22 16:00:15 +00:00
|
|
|
((self_closing_tag
|
|
|
|
|
(tag_name) @type)
|
|
|
|
|
(#lua-match? @type "^[A-Z]"))
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
((erroneous_end_tag
|
|
|
|
|
(erroneous_end_tag_name) @type)
|
|
|
|
|
(#lua-match? @type "^[A-Z]"))
|