From 94853ae9327f2a19f9db161879b1cf7929e5bc42 Mon Sep 17 00:00:00 2001 From: net-solution Date: Fri, 22 Nov 2024 16:00:15 +0000 Subject: [PATCH] fix(astro): highlight self-closing component tags --- queries/astro/highlights.scm | 4 ++++ 1 file changed, 4 insertions(+) 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]"))