Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/crystal/locals.scm')
| -rw-r--r-- | runtime/queries/crystal/locals.scm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/runtime/queries/crystal/locals.scm b/runtime/queries/crystal/locals.scm index 57154286..b44fd3a0 100644 --- a/runtime/queries/crystal/locals.scm +++ b/runtime/queries/crystal/locals.scm @@ -1 +1,14 @@ -; inherits: ruby +((method_def) @local.scope + (#set! local.scope-inherits false)) +((fun_def) @local.scope + (#set! local.scope-inherits false)) + +(block) @local.scope + +(param + name: (identifier) @local.definition.variable.parameter) + +(assign + lhs: (identifier) @local.definition.variable) + +(identifier) @local.reference |