refactor(python): merge docstring queries

This commit is contained in:
ObserverOfTime 2024-06-28 09:41:53 +03:00 committed by Christian Clason
parent cf7baac35a
commit ec6307e5b0

View file

@ -199,46 +199,27 @@
] @string.escape
; 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
.
(comment)*
.
(expression_statement
(string
(string_content) @spell)))
(string_content) @spell) @string.documentation))
(class_definition
body: (block
.
(expression_statement
(string
(string_content) @spell))))
(string_content) @spell) @string.documentation)))
(function_definition
body: (block
.
(expression_statement
(string
(string_content) @spell))))
(string_content) @spell) @string.documentation)))
; Tokens
[