From 5d696053e598f946ace25e38a643e2a618573376 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 22 Jul 2020 16:24:39 +0200 Subject: Fix #198: prefer method highlighting over attribute --- queries/python/highlights.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'queries/python') diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index 9f7a8b7bc..9e0ff2dca 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -13,6 +13,10 @@ ((identifier) @constant.builtin (match? @constant.builtin "^__[a-zA-Z0-9_]*__$")) +((attribute + attribute: (identifier) @field) + (match? @field "^([A-Z])@!.*$")) + ; Function calls (decorator) @function @@ -200,10 +204,6 @@ superclasses: (argument_list (identifier) @type)) -((attribute - attribute: (identifier) @field) - (match? @field "^([A-Z])@!.*$")) - ((class_definition body: (block (expression_statement -- cgit v1.2.3-70-g09d2