mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -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)
|
||||
(catch_clause)
|
||||
(object)
|
||||
(generator_function)
|
||||
(generator_function_declaration)
|
||||
] @fold
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@
|
|||
name: (identifier) @function)
|
||||
(function_declaration
|
||||
name: (identifier) @function)
|
||||
(generator_function
|
||||
name: (identifier) @function)
|
||||
(generator_function_declaration
|
||||
name: (identifier) @function)
|
||||
(method_definition
|
||||
name: (property_identifier) @method)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue