just: bump grammar support to fix alias name bug and add tag queries (#14169)

This commit is contained in:
Poliorcetics
2025-08-10 01:57:16 +02:00
committed by GitHub
parent ef3a49d03c
commit a44695e4e8
5 changed files with 23 additions and 4 deletions

View File

@@ -132,7 +132,7 @@
| jsonnet | ✓ | | | | | `jsonnet-language-server` |
| jsx | ✓ | ✓ | ✓ | ✓ | ✓ | `typescript-language-server` |
| julia | ✓ | ✓ | ✓ | | | `julia` |
| just | ✓ | ✓ | ✓ | | | `just-lsp` |
| just | ✓ | ✓ | ✓ | | | `just-lsp` |
| kdl | ✓ | ✓ | ✓ | | | |
| koka | ✓ | | ✓ | | | `koka` |
| kotlin | ✓ | ✓ | ✓ | | | `kotlin-language-server` |

View File

@@ -3468,7 +3468,7 @@ language-servers = ["just-lsp"]
[[grammar]]
name = "just"
source = { git = "https://github.com/poliorcetics/tree-sitter-just", rev = "0f84211c637813bcf1eb32c9e35847cdaea8760d" }
source = { git = "https://github.com/poliorcetics/tree-sitter-just", rev = "b75dace757e5d122d25c1a1a7772cb87b560f829" }
[[language]]
name = "gn"

View File

@@ -30,7 +30,7 @@
(identifier) @variable)
(alias
name: (identifier) @variable)
alias_name: (identifier) @variable)
(assignment
name: (identifier) @variable)

View File

@@ -8,7 +8,7 @@
; Definitions
(alias
name: (identifier) @local.definition.variable)
alias_name: (identifier) @local.definition.variable)
(assignment
name: (identifier) @local.definition.variable)

View File

@@ -0,0 +1,19 @@
; Symbols that can be considered definitions in a Just file.
(alias
alias_name: (identifier) @definition.function)
(assignment
name: (identifier) @definition.constant)
(import
(path) @definition.module)
(mod
name: (identifier) @definition.module)
(recipe
name: (identifier) @definition.function)
(unexport
name: (identifier) @definition.constant)