aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/highlights.scm
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-11-28 22:25:27 +0100
committerThomas Vigouroux <tomvig38@gmail.com>2020-11-30 11:19:22 +0100
commitb3a3403e2535102c2cb4e1af93e5233ad8dc106b (patch)
tree353e3f877f035e409e6bd6d161b4279929a4a3f9 /queries/python/highlights.scm
parentUpdate teal queries (diff)
downloadnvim-treesitter-b3a3403e2535102c2cb4e1af93e5233ad8dc106b.tar
nvim-treesitter-b3a3403e2535102c2cb4e1af93e5233ad8dc106b.tar.gz
nvim-treesitter-b3a3403e2535102c2cb4e1af93e5233ad8dc106b.tar.bz2
nvim-treesitter-b3a3403e2535102c2cb4e1af93e5233ad8dc106b.tar.lz
nvim-treesitter-b3a3403e2535102c2cb4e1af93e5233ad8dc106b.tar.xz
nvim-treesitter-b3a3403e2535102c2cb4e1af93e5233ad8dc106b.tar.zst
nvim-treesitter-b3a3403e2535102c2cb4e1af93e5233ad8dc106b.zip
Update Python queries
Diffstat (limited to 'queries/python/highlights.scm')
-rw-r--r--queries/python/highlights.scm10
1 files changed, 8 insertions, 2 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 4aaf6c20c..b98fc0cf7 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -224,8 +224,14 @@
body: (block
(expression_statement
(assignment
- left: (left_hand_side
- (identifier) @field)))))
+ left: (identifier) @field))))
+ (#vim-match? @field "^([A-Z])@!.*$"))
+((class_definition
+ body: (block
+ (expression_statement
+ (assignment
+ left: (_
+ (identifier) @field)))))
(#vim-match? @field "^([A-Z])@!.*$"))
((class_definition