nvim-treesitter/queries/astro/highlights.scm

14 lines
334 B
Scheme
Raw Permalink Normal View History

2022-04-07 20:34:19 +08:00
; inherits: html
[ "---" ] @punctuation.delimiter
[ "{" "}" ] @punctuation.special
; custom components get `@type` highlighting
((start_tag (tag_name) @type)
(#lua-match? @type "^[A-Z]"))
((end_tag (tag_name) @type)
(#lua-match? @type "^[A-Z]"))
((erroneous_end_tag (erroneous_end_tag_name) @type)
(#lua-match? @type "^[A-Z]"))