Restore comment and language label highlighting

- Add back comment highlighting rules (template_comment, html_comment)
- Add embedded language name labels (json, alpine, js, css, etc.)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Michael Netshipise 2026-01-19 21:40:26 +02:00
parent 1e72442071
commit 22b190fa14
1 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,12 @@
; Waltzing Template Highlights
; Comments (all template comment variants)
(template_comment) @comment
(template_comment_1) @comment
(template_comment_2) @comment
(template_comment_3) @comment
(html_comment) @comment
; Keywords
"@use" @keyword
"@import" @keyword
@ -90,5 +97,14 @@
(escape_sequence) @escape
(escape_at) @escape
; Embedded language names
"json" @label
"alpine" @label
"js" @label
"javascript" @label
"css" @label
"style" @label
"html" @label
; Variables (fallback)
(identifier) @variable