From cc63a936004a097eb36d956eabf352a1e6d163e2 Mon Sep 17 00:00:00 2001 From: Alan Russell Date: Fri, 18 Jul 2025 09:02:21 +0100 Subject: [PATCH] Add comment injection --- runtime/queries/groq/highlights.scm | 2 +- runtime/queries/groq/injections.scm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/groq/injections.scm diff --git a/runtime/queries/groq/highlights.scm b/runtime/queries/groq/highlights.scm index e3c9dca29..07a6432c3 100644 --- a/runtime/queries/groq/highlights.scm +++ b/runtime/queries/groq/highlights.scm @@ -84,7 +84,7 @@ "order" @function.builtin) ; Comments -(comment) @comment +(comment) @comment @spell ; Projections and objects (projection diff --git a/runtime/queries/groq/injections.scm b/runtime/queries/groq/injections.scm new file mode 100644 index 000000000..2f0e58eb6 --- /dev/null +++ b/runtime/queries/groq/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.content + (#set! injection.language "comment"))