From dfead6cacab1a9f94396169166c9de8f8d4efdb7 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 21 Jun 2020 16:32:25 +0200 Subject: Adapt Python highlights to new query syntax --- queries/python/locals.scm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'queries/python/locals.scm') diff --git a/queries/python/locals.scm b/queries/python/locals.scm index 735271663..cdf4d4117 100644 --- a/queries/python/locals.scm +++ b/queries/python/locals.scm @@ -30,12 +30,8 @@ ; Function defines function and scope (function_definition - name: (identifier) @definition.function) @scope - -;; Should be extended to when syntax supported -;(function_definition - ;name: (identifier) @definition.function - ;body: (block (expression_statement (string) @definition.function.doc)?)) @scope + name: (identifier) @definition.function + body: (block (expression_statement (string) @definition.doc)?)) @scope (class_definition -- cgit v1.2.3-70-g09d2