From 4c3f1e28d29e2e4aaf8f30b817f1f7d178f54603 Mon Sep 17 00:00:00 2001 From: Ben Barber Date: Mon, 24 Nov 2025 14:38:23 -0500 Subject: [PATCH] improve highlights for wgsl (add operators and lower priority variable) --- runtime/queries/wgsl/highlights.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/runtime/queries/wgsl/highlights.scm b/runtime/queries/wgsl/highlights.scm index 854ffe921..255efb2a1 100644 --- a/runtime/queries/wgsl/highlights.scm +++ b/runtime/queries/wgsl/highlights.scm @@ -1,4 +1,4 @@ -(identifier) @variable +((identifier) @variable (#set! priority 99)) (int_literal) @number @@ -116,6 +116,14 @@ "@" "++" "--" + "+=" + "-=" + "*=" + "/=" + "%=" + "&=" + "|=" + "^=" ] @operator (attribute