aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-01-06 22:56:18 +0100
committerStephan Seitz <stephan.lauf@yahoo.de>2021-01-07 08:52:41 +0100
commitb441f257a40565d8f26a870d82b32ec87286b2d0 (patch)
treedde37a93b1a0b97244dbe7949e0e0e22fa78a0d9 /queries/python
parentPython locals: Add new node with_clause (diff)
downloadnvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar
nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.gz
nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.bz2
nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.lz
nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.xz
nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.zst
nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.zip
Python highlights: update definition of decorator
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 2d845c4c0..07f4379ca 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -33,7 +33,10 @@
; Function calls
(decorator) @function
-((decorator (dotted_name (identifier) @function))
+((decorator (attribute (identifier) @function))
+ (#vim-match? @function "^([A-Z])@!.*$"))
+(decorator) @function
+((decorator (identifier) @function)
(#vim-match? @function "^([A-Z])@!.*$"))
(call