From b441f257a40565d8f26a870d82b32ec87286b2d0 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 6 Jan 2021 22:56:18 +0100 Subject: Python highlights: update definition of decorator --- queries/python/highlights.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'queries/python') 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 -- cgit v1.2.3-70-g09d2