16 lines
368 B
Scheme
16 lines
368 B
Scheme
; Local variable scoping for SCL - matches grammar.js structure
|
|
|
|
; Variable declarations define local variables
|
|
(var_item
|
|
name: (identifier) @definition.var)
|
|
|
|
; Variable sections create scopes
|
|
(var_declaration) @local.scope
|
|
|
|
; Blocks create scopes
|
|
(organization_block) @local.scope
|
|
(function_block) @local.scope
|
|
|
|
; Identifiers are references
|
|
(identifier) @reference
|