aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/highlights.scm
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-11-03 18:50:26 +0100
committerStephan Seitz <stephan.lauf@yahoo.de>2020-11-03 20:26:08 +0100
commit1e0ab0b885fdcd200c44ea2b530cc3fa5b882e9b (patch)
treebed2c0ccf7457fe2ff3e776e1d191ee1885ce734 /queries/python/highlights.scm
parent💣!!! Update lockfile !!! Run TSUpdate! (diff)
downloadnvim-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/highlights.scm')
-rw-r--r--queries/python/highlights.scm16
1 files changed, 8 insertions, 8 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index b0cae4cfc..4aaf6c20c 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -76,15 +76,15 @@
(identifier) @type))
(#eq? @_isinstance "isinstance"))
-; Normal parameters
+;; Normal parameters
(parameters
(identifier) @parameter)
-; Lambda parameters
+;; Lambda parameters
(lambda_parameters
(identifier) @parameter)
(lambda_parameters
- (tuple
- (identifier) @parameter ))
+ (tuple_pattern
+ (identifier) @parameter))
; Default parameters
(keyword_argument
name: (identifier) @parameter)
@@ -97,14 +97,14 @@
(identifier) @parameter)
; Variadic parameters *args, **kwargs
(parameters
- (list_splat ; *args
+ (list_splat_pattern ; *args
(identifier) @parameter))
(parameters
- (dictionary_splat ; **kwargs
+ (dictionary_splat_pattern ; **kwargs
(identifier) @parameter))
-; Literals
+;; Literals
(none) @constant.builtin
[(true) (false)] @boolean
@@ -224,7 +224,7 @@
body: (block
(expression_statement
(assignment
- left: (expression_list
+ left: (left_hand_side
(identifier) @field)))))
(#vim-match? @field "^([A-Z])@!.*$"))