mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-24 02:16:18 +04:00
45dd54082e
With respect to the queries: The locals scope for functions was not large enough, so a function's parameter could outlive the function body. To fix it, we just widen the scope to the `function` node. See also https://github.com/gleam-lang/tree-sitter-gleam/issues/25 With respect to the parser: An external scanner has been added that fixes the parsing of strings. Previously, a comment inside a string would act like a comment rather than string contents. See also https://github.com/gleam-lang/tree-sitter-gleam/issues/14#issuecomment-1129263640 A new constructor node has been added as well which makes type highlighting more fine grained. See also https://github.com/gleam-lang/tree-sitter-gleam/pull/29
16 lines
437 B
Scheme
16 lines
437 B
Scheme
; Scopes
|
|
(function) @local.scope
|
|
|
|
(case_clause) @local.scope
|
|
|
|
; Definitions
|
|
(let pattern: (identifier) @local.definition)
|
|
(function_parameter name: (identifier) @local.definition)
|
|
(list_pattern (identifier) @local.definition)
|
|
(list_pattern assign: (identifier) @local.definition)
|
|
(tuple_pattern (identifier) @local.definition)
|
|
(record_pattern_argument pattern: (identifier) @local.definition)
|
|
|
|
; References
|
|
(identifier) @local.reference
|