syntax: Add go & rust locals, improve tree-sitter error message

This commit is contained in:
Blaž Hrastnik 2021-09-06 18:13:52 +09:00
parent 2bef245b7a
commit 4ac29434cb
5 changed files with 57 additions and 6 deletions

View 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