diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-11-03 18:50:26 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2020-11-03 20:26:08 +0100 |
| commit | 1e0ab0b885fdcd200c44ea2b530cc3fa5b882e9b (patch) | |
| tree | bed2c0ccf7457fe2ff3e776e1d191ee1885ce734 /queries/python/locals.scm | |
| parent | 💣!!! Update lockfile !!! Run TSUpdate! (diff) | |
| download | nvim-treesitter-1e0ab0b885fdcd200c44ea2b530cc3fa5b882e9b.tar nvim-treesitter-1e0ab0b885fdcd200c44ea2b530cc3fa5b882e9b.tar.gz nvim-treesitter-1e0ab0b885fdcd200c44ea2b530cc3fa5b882e9b.tar.bz2 nvim-treesitter-1e0ab0b885fdcd200c44ea2b530cc3fa5b882e9b.tar.lz nvim-treesitter-1e0ab0b885fdcd200c44ea2b530cc3fa5b882e9b.tar.xz nvim-treesitter-1e0ab0b885fdcd200c44ea2b530cc3fa5b882e9b.tar.zst nvim-treesitter-1e0ab0b885fdcd200c44ea2b530cc3fa5b882e9b.zip | |
Fix Python queries for parser update
Diffstat (limited to 'queries/python/locals.scm')
| -rw-r--r-- | queries/python/locals.scm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/queries/python/locals.scm b/queries/python/locals.scm index ecd6c6b7c..7fdc167d7 100644 --- a/queries/python/locals.scm +++ b/queries/python/locals.scm @@ -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 |
