From 498a2d28e28077b366c05a33b4dc04be8a29d39c Mon Sep 17 00:00:00 2001 From: Michael Netshipise Date: Mon, 19 Jan 2026 20:45:49 +0200 Subject: [PATCH] Update highlights.scm for new grammar nodes Add queries for comment_content, raw_content, embedded_content, and embedded_language nodes produced by the updated grammar. Co-Authored-By: Claude Opus 4.5 --- queries/highlights.scm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/queries/highlights.scm b/queries/highlights.scm index 5ea7e47..7adff90 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -2,12 +2,17 @@ ; Comments (html_comment) @comment +(template_comment) @comment +(comment_content) @comment ; Raw blocks (verbatim content) (raw_block) @string.special +(raw_content) @string.special -; Template comments -(template_comment) @comment +; Embedded language +(embedded_language) @string.special +(embedded_content) @string.special +(language_name) @label ; Keywords "@use" @keyword @@ -99,8 +104,5 @@ (escape_sequence) @escape (escape_at) @escape -; Embedded -(language_name) @label - ; Variables (fallback) (identifier) @variable