nvim-treesitter/queries/javascript/folds.scm
Thomas Vigouroux c055899dc0 feat(queries): modeline mechanism for base langs
This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189

This behaves like modelines and remove the use of the base_language map.
Also, this allows to fine-tune what we actually want to include per
query, which is better IMO.
2020-10-11 19:09:22 +02:00

16 lines
282 B
Scheme

; inherits: (jsx)
[
(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)
] @fold