mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(snakemake): update locals queries
This commit is contained in:
parent
67296f5a04
commit
b7aa66c431
1 changed files with 36 additions and 0 deletions
|
|
@ -2,3 +2,39 @@
|
|||
|
||||
(rule_definition
|
||||
name: (identifier) @local.definition.type) @local.scope
|
||||
|
||||
(rule_inheritance
|
||||
alias: (as_pattern_target) @local.definition.type) @local.scope
|
||||
|
||||
(checkpoint_definition
|
||||
name: (identifier) @local.definition.type) @local.scope
|
||||
|
||||
(module_definition
|
||||
name: (identifier) @local.definition.type) @local.scope
|
||||
|
||||
; use rule A from X
|
||||
(rule_import
|
||||
(rule_import_list
|
||||
(identifier) @local.definition.import)
|
||||
.
|
||||
module_name: (identifier) .) @local.scope
|
||||
|
||||
; use rule A from X as A_fromX
|
||||
; use rule A from X as *_fromX
|
||||
; use rule * from X as *_fromX
|
||||
(rule_import
|
||||
alias: (as_pattern_target) @local.definition.import .) @local.scope
|
||||
|
||||
; use rule A from X with:
|
||||
(rule_import
|
||||
(rule_import_list
|
||||
(identifier) @local.definition.type)
|
||||
.
|
||||
module_name: (identifier)
|
||||
.
|
||||
"with") @local.scope
|
||||
|
||||
; use rule A from X as Y with:
|
||||
(rule_import
|
||||
alias: (as_pattern_target) @local.definition.type
|
||||
"with") @local.scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue