mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(snakemake): add rules to locals (#7698)
This commit is contained in:
parent
794cf2f630
commit
16e8e19771
2 changed files with 6 additions and 3 deletions
|
|
@ -16,15 +16,15 @@
|
|||
|
||||
; Imports
|
||||
(aliased_import
|
||||
alias: (identifier) @local.definition.import)
|
||||
alias: (identifier) @local.definition.import) @local.scope
|
||||
|
||||
(import_statement
|
||||
name: (dotted_name
|
||||
(identifier) @local.definition.import))
|
||||
(identifier) @local.definition.import)) @local.scope
|
||||
|
||||
(import_from_statement
|
||||
name: (dotted_name
|
||||
(identifier) @local.definition.import))
|
||||
(identifier) @local.definition.import)) @local.scope
|
||||
|
||||
; Function with parameters, defines parameters
|
||||
(parameters
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
; inherits: python
|
||||
|
||||
(rule_definition
|
||||
name: (identifier) @local.definition.type) @local.scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue