diff options
Diffstat (limited to 'runtime/queries/inko/locals.scm')
| -rw-r--r-- | runtime/queries/inko/locals.scm | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/runtime/queries/inko/locals.scm b/runtime/queries/inko/locals.scm new file mode 100644 index 000000000..09450f525 --- /dev/null +++ b/runtime/queries/inko/locals.scm @@ -0,0 +1,57 @@ +[ + (method) + (block) +] @local.scope + +(method + name: _ @local.definition.method) + +(external_function + name: _ @local.definition.function) + +(argument + name: _ @local.definition.parameter) + +(define_variable + name: _ @local.definition.var) + +(define_constant + name: _ @local.definition.constant) + +(define_field + name: _ @local.definition.field) + +(named_argument + name: _ @local.definition.parameter) + +(class + modifier: (modifier + "enum") + name: _ @local.definition.enum) + +(class + modifier: (modifier + "enum") + body: (class_body + (define_case + name: _ @local.definition.field))) + +(class + name: _ @local.definition.type) + +(trait + name: _ @local.definition.type) + +(import + (symbols + [ + (identifier) + (constant) + (self) + ] @local.definition.import)) + +(identifier) @local.reference + +(field) @local.reference + +(constant) @local.reference |
