mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-06 04:17:43 +03:00
syntax: Add go & rust locals, improve tree-sitter error message
This commit is contained in:
parent
2bef245b7a
commit
4ac29434cb
5 changed files with 57 additions and 6 deletions
17
runtime/queries/rust/locals.scm
Normal file
17
runtime/queries/rust/locals.scm
Normal file
|
@ -0,0 +1,17 @@
|
|||
; Scopes
|
||||
|
||||
(block) @local.scope
|
||||
|
||||
; Definitions
|
||||
|
||||
(parameter
|
||||
(identifier) @local.definition)
|
||||
|
||||
(let_declaration
|
||||
pattern: (identifier) @local.definition)
|
||||
|
||||
(closure_parameters (identifier)) @local.definition
|
||||
|
||||
; References
|
||||
(identifier) @local.reference
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue