mirror of
https://github.com/helix-editor/helix.git
synced 2025-10-06 00:13:28 +02:00
just: bump grammar support to fix alias name bug and add tag queries (#14169)
This commit is contained in:
@@ -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` |
|
||||
|
@@ -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"
|
||||
|
@@ -30,7 +30,7 @@
|
||||
(identifier) @variable)
|
||||
|
||||
(alias
|
||||
name: (identifier) @variable)
|
||||
alias_name: (identifier) @variable)
|
||||
|
||||
(assignment
|
||||
name: (identifier) @variable)
|
||||
|
@@ -8,7 +8,7 @@
|
||||
; Definitions
|
||||
|
||||
(alias
|
||||
name: (identifier) @local.definition.variable)
|
||||
alias_name: (identifier) @local.definition.variable)
|
||||
|
||||
(assignment
|
||||
name: (identifier) @local.definition.variable)
|
||||
|
19
runtime/queries/just/tags.scm
Normal file
19
runtime/queries/just/tags.scm
Normal 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)
|
Reference in New Issue
Block a user