mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
chore: create ecma base for use in js and ts which fixes jsx issues
This commit is contained in:
parent
ec41db9511
commit
3b8c2ea492
15 changed files with 411 additions and 412 deletions
19
queries/ecma/folds.scm
Normal file
19
queries/ecma/folds.scm
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[
|
||||
(for_in_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
(arrow_function)
|
||||
(function)
|
||||
(function_declaration)
|
||||
(class_declaration)
|
||||
(method_definition)
|
||||
(do_statement)
|
||||
(with_statement)
|
||||
(switch_statement)
|
||||
(switch_case)
|
||||
(import_statement)
|
||||
(if_statement)
|
||||
(try_statement)
|
||||
(catch_clause)
|
||||
(object)
|
||||
] @fold
|
||||
Loading…
Add table
Add a link
Reference in a new issue