Skip to content

Commit

Permalink
just: bump grammar support to Just 1.37.0 (helix-editor#12141)
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics authored Dec 2, 2024
1 parent b1bdbc6 commit 83fe23c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions runtime/queries/just/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[
"export"
"import"
"unexport"
] @keyword.control.import

"mod" @keyword.directive
Expand All @@ -18,6 +19,11 @@
"else"
] @keyword.control.conditional

[
"&&"
"||"
] @operator

; Variables

(value
Expand All @@ -31,6 +37,9 @@

(shell_variable_name) @variable

(unexport
name: (identifier) @variable)

; Functions

(recipe
Expand Down

0 comments on commit 83fe23c

Please sign in to comment.