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