From dbda3334381ed65590f8e6297c9a470942720f0c Mon Sep 17 00:00:00 2001 From: "Alexis (Poliorcetics) Bourget" Date: Wed, 27 Nov 2024 23:27:42 +0100 Subject: [PATCH] just: bump grammar support to Just 1.37.0 --- languages.toml | 2 +- runtime/queries/just/highlights.scm | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index df0a29cf0bd9..85f64137f710 100644 --- a/languages.toml +++ b/languages.toml @@ -3168,7 +3168,7 @@ indent = { tab-width = 4, unit = " " } [[grammar]] name = "just" -source = { git = "https://github.com/poliorcetics/tree-sitter-just", rev = "6e28fa6cba511c694247cd802d1c3b14f8d34dbb" } +source = { git = "https://github.com/poliorcetics/tree-sitter-just", rev = "180bb15d64c63585c4f65c551350048f21987bcb" } [[language]] name = "gn" diff --git a/runtime/queries/just/highlights.scm b/runtime/queries/just/highlights.scm index 258fadb9e1da..97a997619b49 100644 --- a/runtime/queries/just/highlights.scm +++ b/runtime/queries/just/highlights.scm @@ -3,6 +3,7 @@ [ "export" "import" + "unexport" ] @keyword.control.import "mod" @keyword.directive @@ -18,6 +19,11 @@ "else" ] @keyword.control.conditional +[ + "&&" + "||" +] @operator + ; Variables (value @@ -31,6 +37,9 @@ (shell_variable_name) @variable +(unexport + name: (identifier) @variable) + ; Functions (recipe