From b2ef3985147aba987f7b579e20d5faca8b030f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sun, 31 May 2026 21:26:10 +0900 Subject: [PATCH] lang: Update jsonnet --- languages.toml | 2 +- runtime/queries/jsonnet/highlights.scm | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/languages.toml b/languages.toml index 5990934f..30e357f3 100644 --- a/languages.toml +++ b/languages.toml @@ -3116,7 +3116,7 @@ language-servers = [ "jsonnet-language-server" ] [[grammar]] name = "jsonnet" -source = { git = "https://github.com/sourcegraph/tree-sitter-jsonnet", rev = "0475a5017ad7dc84845d1d33187f2321abcb261d" } +source = { git = "https://github.com/sourcegraph/tree-sitter-jsonnet", rev = "ddd075f1939aed8147b7aa67f042eda3fce22790" } [[language]] name = "ada" diff --git a/runtime/queries/jsonnet/highlights.scm b/runtime/queries/jsonnet/highlights.scm index c5cb49ff..1e829bbd 100644 --- a/runtime/queries/jsonnet/highlights.scm +++ b/runtime/queries/jsonnet/highlights.scm @@ -12,7 +12,9 @@ (false) ] @constant.builtin.boolean -(binaryop) @operator +; Binary operators are now an `operator:` field whose node is the operator +; category (additive/comparison/and/bitor/…); capture it directly. +(binary operator: _ @operator) (unaryop) @operator (id) @variable -- 2.51.2