Treat every standalone string as docstring

This commit is contained in:
Jakob Zahn 2025-04-02 10:17:06 +02:00
parent 4b390e1e46
commit 7e01194639

View file

@ -80,27 +80,10 @@
] @string.escape
; doc-strings
(module
.
(comment)*
.
(expression_statement
(string
(string_content) @spell) @string.documentation))
(expression_statement
(string
(string_content) @spell) @string.documentation)
(class_definition
body: (block
.
(expression_statement
(string
(string_content) @spell) @string.documentation)))
(function_definition
body: (block
.
(expression_statement
(string
(string_content) @spell) @string.documentation)))
; Tokens
[