summaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-09-16 18:59:37 -0500
committerStephan Seitz <stephan.lauf@yahoo.de>2020-09-17 09:18:05 +0200
commit68d8f4c02e4e0ed288a296607cc0abe2d3a01ab9 (patch)
treeed82abe24b6b0b721d13195f44272308cc869ab2 /queries/python
parentupdate require statements to use TSInclude (diff)
downloadnvim-treesitter-68d8f4c02e4e0ed288a296607cc0abe2d3a01ab9.tar
nvim-treesitter-68d8f4c02e4e0ed288a296607cc0abe2d3a01ab9.tar.gz
nvim-treesitter-68d8f4c02e4e0ed288a296607cc0abe2d3a01ab9.tar.bz2
nvim-treesitter-68d8f4c02e4e0ed288a296607cc0abe2d3a01ab9.tar.lz
nvim-treesitter-68d8f4c02e4e0ed288a296607cc0abe2d3a01ab9.tar.xz
nvim-treesitter-68d8f4c02e4e0ed288a296607cc0abe2d3a01ab9.tar.zst
nvim-treesitter-68d8f4c02e4e0ed288a296607cc0abe2d3a01ab9.zip
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.
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/locals.scm3
1 files changed, 1 insertions, 2 deletions
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"))