aboutsummaryrefslogtreecommitdiffstats
path: root/queries/astro
diff options
context:
space:
mode:
authornet-solution <highconcept@pm.me>2024-11-22 16:00:15 +0000
committerChristian Clason <ch.clason+github@icloud.com>2024-11-23 10:43:46 +0100
commit94853ae9327f2a19f9db161879b1cf7929e5bc42 (patch)
tree84d6099d08765d0a61879ebcb2db2cf21df8cec4 /queries/astro
parentbot(lockfile): update fortran, nu, r (diff)
downloadnvim-treesitter-94853ae9327f2a19f9db161879b1cf7929e5bc42.tar
nvim-treesitter-94853ae9327f2a19f9db161879b1cf7929e5bc42.tar.gz
nvim-treesitter-94853ae9327f2a19f9db161879b1cf7929e5bc42.tar.bz2
nvim-treesitter-94853ae9327f2a19f9db161879b1cf7929e5bc42.tar.lz
nvim-treesitter-94853ae9327f2a19f9db161879b1cf7929e5bc42.tar.xz
nvim-treesitter-94853ae9327f2a19f9db161879b1cf7929e5bc42.tar.zst
nvim-treesitter-94853ae9327f2a19f9db161879b1cf7929e5bc42.zip
fix(astro): highlight self-closing component tags
Diffstat (limited to 'queries/astro')
-rw-r--r--queries/astro/highlights.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/queries/astro/highlights.scm b/queries/astro/highlights.scm
index e4baf5380..e2917ad4d 100644
--- a/queries/astro/highlights.scm
+++ b/queries/astro/highlights.scm
@@ -20,6 +20,10 @@
(tag_name) @type)
(#lua-match? @type "^[A-Z]"))
+((self_closing_tag
+ (tag_name) @type)
+ (#lua-match? @type "^[A-Z]"))
+
((erroneous_end_tag
(erroneous_end_tag_name) @type)
(#lua-match? @type "^[A-Z]"))