mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Add generator functions to ecma queries
This commit is contained in:
parent
548a0d8d7f
commit
09045354c0
2 changed files with 6 additions and 0 deletions
|
|
@ -16,4 +16,6 @@
|
||||||
(try_statement)
|
(try_statement)
|
||||||
(catch_clause)
|
(catch_clause)
|
||||||
(object)
|
(object)
|
||||||
|
(generator_function)
|
||||||
|
(generator_function_declaration)
|
||||||
] @fold
|
] @fold
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,10 @@
|
||||||
name: (identifier) @function)
|
name: (identifier) @function)
|
||||||
(function_declaration
|
(function_declaration
|
||||||
name: (identifier) @function)
|
name: (identifier) @function)
|
||||||
|
(generator_function
|
||||||
|
name: (identifier) @function)
|
||||||
|
(generator_function_declaration
|
||||||
|
name: (identifier) @function)
|
||||||
(method_definition
|
(method_definition
|
||||||
name: (property_identifier) @method)
|
name: (property_identifier) @method)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue