From 22b190fa14e4527ccbb98739ee14c486fd3fafd2 Mon Sep 17 00:00:00 2001 From: Michael Netshipise Date: Mon, 19 Jan 2026 21:40:26 +0200 Subject: [PATCH] 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 --- queries/highlights.scm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/queries/highlights.scm b/queries/highlights.scm index e7c2264..40e607e 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -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