diff options
| author | Steven Sojka <steelsojka@gmail.com> | 2020-09-06 09:38:09 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-06 17:20:43 +0200 |
| commit | 02735aae5508a9f85703bbf142eb0d1174470402 (patch) | |
| tree | 3d500b02321e90bb511228993013574fd6228eb0 /queries | |
| parent | feead20c0413e89045c494b887d2fb755b1c59f9 (diff) | |
feat(folds): add ts and js folds
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/javascript/fold.scm | 15 | ||||
| -rw-r--r-- | queries/typescript/fold.scm | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/queries/javascript/fold.scm b/queries/javascript/fold.scm new file mode 100644 index 00000000..6bc76af8 --- /dev/null +++ b/queries/javascript/fold.scm @@ -0,0 +1,15 @@ +[ + (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 diff --git a/queries/typescript/fold.scm b/queries/typescript/fold.scm new file mode 100644 index 00000000..f08395f3 --- /dev/null +++ b/queries/typescript/fold.scm @@ -0,0 +1,5 @@ +[ + (interface_declaration) + (internal_module) + (type_alias_declaration) +] @fold |
