mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat: add @string.documentation where applicable
This commit is contained in:
parent
51030378eb
commit
95bcd6a8fa
4 changed files with 32 additions and 5 deletions
|
|
@ -176,7 +176,18 @@
|
|||
(escape_sequence) @string.escape
|
||||
|
||||
; doc-strings
|
||||
(expression_statement (string) @spell)
|
||||
|
||||
(module . (expression_statement (string) @string.documentation @spell))
|
||||
|
||||
(class_definition
|
||||
body:
|
||||
(block
|
||||
. (expression_statement (string) @string.documentation @spell)))
|
||||
|
||||
(function_definition
|
||||
body:
|
||||
(block
|
||||
. (expression_statement (string) @string.documentation @spell)))
|
||||
|
||||
; Tokens
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue