mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
Treat every standalone string as docstring
This commit is contained in:
parent
4b390e1e46
commit
7e01194639
1 changed files with 3 additions and 20 deletions
|
|
@ -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
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue