diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-07-22 15:29:32 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | 5b90ea2abaa4303b9205b5c9002a8cdd0acd11a5 (patch) | |
| tree | 2b2856c96ba738d90229a3d6eae44a7f66d7e5e2 /queries/hare | |
| parent | revert "fix(config)!: always install parsers bundled with nvim" (diff) | |
| download | nvim-treesitter-5b90ea2abaa4303b9205b5c9002a8cdd0acd11a5.tar nvim-treesitter-5b90ea2abaa4303b9205b5c9002a8cdd0acd11a5.tar.gz nvim-treesitter-5b90ea2abaa4303b9205b5c9002a8cdd0acd11a5.tar.bz2 nvim-treesitter-5b90ea2abaa4303b9205b5c9002a8cdd0acd11a5.tar.lz nvim-treesitter-5b90ea2abaa4303b9205b5c9002a8cdd0acd11a5.tar.xz nvim-treesitter-5b90ea2abaa4303b9205b5c9002a8cdd0acd11a5.tar.zst nvim-treesitter-5b90ea2abaa4303b9205b5c9002a8cdd0acd11a5.zip | |
feat(locals)!: switch to upstream captures
Diffstat (limited to 'queries/hare')
| -rw-r--r-- | queries/hare/locals.scm | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/queries/hare/locals.scm b/queries/hare/locals.scm index 62eb6665b..bf606b9b1 100644 --- a/queries/hare/locals.scm +++ b/queries/hare/locals.scm @@ -7,41 +7,41 @@ (for_statement) (match_expression) (switch_expression) -] @scope +] @local.scope ; References [ (identifier) (scoped_type_identifier) -] @reference +] @local.reference ; Definitions (global_binding - (identifier) @definition.constant . ":" (_)) + (identifier) @local.definition.constant . ":" (_)) (const_declaration - "const" (identifier) @definition.constant . "=") + "const" (identifier) @local.definition.constant . "=") (field - . (identifier) @definition.field) + . (identifier) @local.definition.field) (field_assignment - . (identifier) @definition.field) + . (identifier) @local.definition.field) (function_declaration - "fn" . (identifier) @definition.function) + "fn" . (identifier) @local.definition.function) (parameter - (_) @definition.parameter . ":") + (_) @local.definition.parameter . ":") (type_declaration - "type" (identifier) @definition.type . "=") + "type" (identifier) @local.definition.type . "=") (type_declaration - "type" (identifier) @definition.enum . "=" (enum_type)) + "type" (identifier) @local.definition.enum . "=" (enum_type)) (let_declaration - "let" . (identifier) @definition.variable ","?) + "let" . (identifier) @local.definition.variable ","?) |
