mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
fix(treesitter): update queries
This commit is contained in:
@@ -21,3 +21,8 @@
|
||||
(dictionary)
|
||||
(string)
|
||||
] @fold
|
||||
|
||||
[
|
||||
(import_statement)
|
||||
(import_from_statement)
|
||||
]+ @fold
|
||||
|
@@ -188,7 +188,7 @@
|
||||
|
||||
((module
|
||||
.
|
||||
(comment) @keyword.directive)
|
||||
(comment) @keyword.directive @nospell)
|
||||
(#lua-match? @keyword.directive "^#!/"))
|
||||
|
||||
(string) @string
|
||||
@@ -204,19 +204,41 @@
|
||||
(comment)*
|
||||
.
|
||||
(expression_statement
|
||||
(string) @string.documentation @spell))
|
||||
(string) @string.documentation))
|
||||
|
||||
(class_definition
|
||||
body: (block
|
||||
.
|
||||
(expression_statement
|
||||
(string) @string.documentation @spell)))
|
||||
(string) @string.documentation)))
|
||||
|
||||
(function_definition
|
||||
body: (block
|
||||
.
|
||||
(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
|
||||
[
|
||||
@@ -278,7 +300,6 @@
|
||||
|
||||
[
|
||||
"assert"
|
||||
"class"
|
||||
"exec"
|
||||
"global"
|
||||
"nonlocal"
|
||||
@@ -286,9 +307,13 @@
|
||||
"print"
|
||||
"with"
|
||||
"as"
|
||||
"type"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"type"
|
||||
"class"
|
||||
] @keyword.type
|
||||
|
||||
[
|
||||
"async"
|
||||
"await"
|
||||
|
Reference in New Issue
Block a user