From 83fe23ce75cef3dd672f30dfa81256670e3a67cc Mon Sep 17 00:00:00 2001 From: Poliorcetics Date: Mon, 2 Dec 2024 15:45:46 +0100 Subject: [PATCH] just: bump grammar support to Just 1.37.0 (#12141) --- 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 4bc980340..a1e6c6e06 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 258fadb9e..97a997619 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