mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
Fix Python queries for parser update
This commit is contained in:
parent
b83a973382
commit
1e0ab0b885
2 changed files with 13 additions and 13 deletions
|
|
@ -5,7 +5,7 @@
|
|||
body: (block
|
||||
(expression_statement
|
||||
(assignment
|
||||
left: (expression_list
|
||||
left: (left_hand_side
|
||||
(identifier) @definition.associated))))) @scope
|
||||
|
||||
; Imports
|
||||
|
|
@ -35,12 +35,12 @@
|
|||
|
||||
; *args parameter
|
||||
(parameters
|
||||
(list_splat
|
||||
(list_splat_pattern
|
||||
(identifier) @definition.parameter))
|
||||
|
||||
; **kwargs parameter
|
||||
(parameters
|
||||
(dictionary_splat
|
||||
(dictionary_splat_pattern
|
||||
(identifier) @definition.parameter))
|
||||
|
||||
; Function defines function and scope
|
||||
|
|
@ -61,7 +61,7 @@
|
|||
;;; Loops
|
||||
; not a scope!
|
||||
(for_statement
|
||||
left: (variables
|
||||
left: (left_hand_side
|
||||
(identifier) @definition.var))
|
||||
|
||||
; not a scope!
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
; for in list comprehension
|
||||
(for_in_clause
|
||||
left: (variables
|
||||
left: (left_hand_side
|
||||
(identifier) @definition.var))
|
||||
|
||||
(dictionary_comprehension) @scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue