mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
fix(python): captures inner string contents with spell
This commit is contained in:
parent
4c84b83108
commit
037c6af78f
1 changed files with 25 additions and 3 deletions
|
|
@ -204,19 +204,41 @@
|
||||||
(comment)*
|
(comment)*
|
||||||
.
|
.
|
||||||
(expression_statement
|
(expression_statement
|
||||||
(string) @string.documentation @spell))
|
(string) @string.documentation))
|
||||||
|
|
||||||
(class_definition
|
(class_definition
|
||||||
body: (block
|
body: (block
|
||||||
.
|
.
|
||||||
(expression_statement
|
(expression_statement
|
||||||
(string) @string.documentation @spell)))
|
(string) @string.documentation)))
|
||||||
|
|
||||||
(function_definition
|
(function_definition
|
||||||
body: (block
|
body: (block
|
||||||
.
|
.
|
||||||
(expression_statement
|
(expression_statement
|
||||||
(string) @string.documentation @spell)))
|
(string) @string.documentation)))
|
||||||
|
|
||||||
|
(module
|
||||||
|
.
|
||||||
|
(comment)*
|
||||||
|
.
|
||||||
|
(expression_statement
|
||||||
|
(string
|
||||||
|
(string_content) @spell)))
|
||||||
|
|
||||||
|
(class_definition
|
||||||
|
body: (block
|
||||||
|
.
|
||||||
|
(expression_statement
|
||||||
|
(string
|
||||||
|
(string_content) @spell))))
|
||||||
|
|
||||||
|
(function_definition
|
||||||
|
body: (block
|
||||||
|
.
|
||||||
|
(expression_statement
|
||||||
|
(string
|
||||||
|
(string_content) @spell))))
|
||||||
|
|
||||||
; Tokens
|
; Tokens
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue