Adapt Python highlights to new query syntax

This commit is contained in:
Stephan Seitz 2020-06-21 16:32:25 +02:00 committed by Thomas Vigouroux
parent 51a52b85cf
commit dfead6caca
2 changed files with 66 additions and 81 deletions

View file

@ -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