nvim-treesitter/runtime/queries/astro/highlights.scm

30 lines
464 B
Scheme
Raw Normal View History

2024-10-15 12:04:13 -04:00
; inherits: html_tags
(doctype) @constant
"<!" @tag.delimiter
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
; 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]"))
((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]"))