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 ] @string.escape
; doc-strings ; doc-strings
(module (expression_statement
. (string
(comment)* (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 ; Tokens
[ [