mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
astro: add custom component highlighting (#5728)
This commit is contained in:
parent
482a2f15d3
commit
8189d91cf8
1 changed files with 8 additions and 0 deletions
|
|
@ -3,3 +3,11 @@
|
|||
[ "---" ] @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]"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue