mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
refactor(python): merge docstring queries
This commit is contained in:
parent
cf7baac35a
commit
ec6307e5b0
1 changed files with 3 additions and 22 deletions
|
|
@ -199,46 +199,27 @@
|
||||||
] @string.escape
|
] @string.escape
|
||||||
|
|
||||||
; doc-strings
|
; doc-strings
|
||||||
(module
|
|
||||||
.
|
|
||||||
(comment)*
|
|
||||||
.
|
|
||||||
(expression_statement
|
|
||||||
(string) @string.documentation))
|
|
||||||
|
|
||||||
(class_definition
|
|
||||||
body: (block
|
|
||||||
.
|
|
||||||
(expression_statement
|
|
||||||
(string) @string.documentation)))
|
|
||||||
|
|
||||||
(function_definition
|
|
||||||
body: (block
|
|
||||||
.
|
|
||||||
(expression_statement
|
|
||||||
(string) @string.documentation)))
|
|
||||||
|
|
||||||
(module
|
(module
|
||||||
.
|
.
|
||||||
(comment)*
|
(comment)*
|
||||||
.
|
.
|
||||||
(expression_statement
|
(expression_statement
|
||||||
(string
|
(string
|
||||||
(string_content) @spell)))
|
(string_content) @spell) @string.documentation))
|
||||||
|
|
||||||
(class_definition
|
(class_definition
|
||||||
body: (block
|
body: (block
|
||||||
.
|
.
|
||||||
(expression_statement
|
(expression_statement
|
||||||
(string
|
(string
|
||||||
(string_content) @spell))))
|
(string_content) @spell) @string.documentation)))
|
||||||
|
|
||||||
(function_definition
|
(function_definition
|
||||||
body: (block
|
body: (block
|
||||||
.
|
.
|
||||||
(expression_statement
|
(expression_statement
|
||||||
(string
|
(string
|
||||||
(string_content) @spell))))
|
(string_content) @spell) @string.documentation)))
|
||||||
|
|
||||||
; Tokens
|
; Tokens
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue