From 68d8f4c02e4e0ed288a296607cc0abe2d3a01ab9 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Wed, 16 Sep 2020 18:59:37 -0500 Subject: Remove @definition.doc captures These aren't really definitions and are being show in the definitions list. We aren't using them at the moment, we could use another group or query file. --- CONTRIBUTING.md | 9 +-------- queries/go/locals.scm | 2 -- queries/python/locals.scm | 3 +-- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 272adf55e..2faabf114 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -159,6 +159,7 @@ Mainly for markup languages. ``` ### Locals + ``` @definition for various definitions @definition.function @@ -174,15 +175,7 @@ Mainly for markup languages. @definition.associated to determine the type of a variable @definition.doc for documentation adjacent to a definition. E.g. -``` - -```scheme - (comment)* @definition.doc - (method_declaration - name: (field_identifier) @definition.method) -``` -``` @scope @reference @constructor diff --git a/queries/go/locals.scm b/queries/go/locals.scm index f4b990a6f..a8e322217 100644 --- a/queries/go/locals.scm +++ b/queries/go/locals.scm @@ -1,11 +1,9 @@ ( - (comment)* @definition.doc (function_declaration name: (identifier) @definition.function) ;@function ) ( - (comment)* @definition.doc (method_declaration name: (field_identifier) @definition.method); @method ) diff --git a/queries/python/locals.scm b/queries/python/locals.scm index 422e386cd..bc21637bb 100644 --- a/queries/python/locals.scm +++ b/queries/python/locals.scm @@ -45,8 +45,7 @@ ; Function defines function and scope ((function_definition - name: (identifier) @definition.function - body: (block (expression_statement (string) @definition.doc)?)) @scope + name: (identifier) @definition.function) @scope (#set! definition.function.scope "parent")) -- cgit v1.2.3-70-g09d2