mirror of https://github.com/helix-editor/helix
chore: update scala tree-sitter grammar (#7147)
* chore: update scala tree-sitter grammar * Add locals.scm for Scalapull/7186/head
parent
a726799a4e
commit
92380540b8
@ -0,0 +1,29 @@
|
|||||||
|
(template_body) @local.scope
|
||||||
|
(lambda_expression) @local.scope
|
||||||
|
|
||||||
|
|
||||||
|
(function_declaration
|
||||||
|
name: (identifier) @local.definition) @local.scope
|
||||||
|
|
||||||
|
(function_definition
|
||||||
|
name: (identifier) @local.definition)
|
||||||
|
|
||||||
|
(parameter
|
||||||
|
name: (identifier) @local.definition)
|
||||||
|
|
||||||
|
(binding
|
||||||
|
name: (identifier) @local.definition)
|
||||||
|
|
||||||
|
(val_definition
|
||||||
|
pattern: (identifier) @local.definition)
|
||||||
|
|
||||||
|
(var_definition
|
||||||
|
pattern: (identifier) @local.definition)
|
||||||
|
|
||||||
|
(val_declaration
|
||||||
|
name: (identifier) @local.definition)
|
||||||
|
|
||||||
|
(var_declaration
|
||||||
|
name: (identifier) @local.definition)
|
||||||
|
|
||||||
|
(identifier) @local.reference
|
Loading…
Reference in New Issue