From 57424533a77cd80accc128457ea59a7241ce0197 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 16 May 2020 19:24:27 +0200 Subject: Add python/highlights.scm from tree-sitter-python --- queries/python/locals.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'queries/python/locals.scm') diff --git a/queries/python/locals.scm b/queries/python/locals.scm index 763d1b77..bc33d306 100644 --- a/queries/python/locals.scm +++ b/queries/python/locals.scm @@ -18,6 +18,12 @@ (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 + + (class_definition name: (identifier) @definition.type) @scope -- cgit v1.2.3