diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-09-07 20:09:44 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-08 22:02:39 +0200 |
| commit | 8bc5d1ff3fc79ca4a54965730dcddf17f9d6f026 (patch) | |
| tree | b618e150b1f32d3f6ab4794ff1b81426f2ede0fc | |
| parent | Fix #418: iterator function should always return an iterator (diff) | |
| download | nvim-treesitter-8bc5d1ff3fc79ca4a54965730dcddf17f9d6f026.tar nvim-treesitter-8bc5d1ff3fc79ca4a54965730dcddf17f9d6f026.tar.gz nvim-treesitter-8bc5d1ff3fc79ca4a54965730dcddf17f9d6f026.tar.bz2 nvim-treesitter-8bc5d1ff3fc79ca4a54965730dcddf17f9d6f026.tar.lz nvim-treesitter-8bc5d1ff3fc79ca4a54965730dcddf17f9d6f026.tar.xz nvim-treesitter-8bc5d1ff3fc79ca4a54965730dcddf17f9d6f026.tar.zst nvim-treesitter-8bc5d1ff3fc79ca4a54965730dcddf17f9d6f026.zip | |
Add C++ folds and C comment/preproc folds
| -rw-r--r-- | queries/c/fold.scm | 6 | ||||
| -rw-r--r-- | queries/cpp/fold.scm | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/queries/c/fold.scm b/queries/c/fold.scm index 403530f2c..5e76f37e5 100644 --- a/queries/c/fold.scm +++ b/queries/c/fold.scm @@ -4,4 +4,10 @@ (while_statement) (translation_unit) (function_definition) + (struct_specifier) + (comment) + (preproc_if) + (preproc_elif) + (preproc_else) + (preproc_ifdef) ] @fold diff --git a/queries/cpp/fold.scm b/queries/cpp/fold.scm new file mode 100644 index 000000000..f43412012 --- /dev/null +++ b/queries/cpp/fold.scm @@ -0,0 +1,9 @@ +[ + (for_range_loop) + (class_specifier) + (template_declaration) + (namespace_definition) + (try_statement) + (catch_clause) + (lambda_expression) +] @fold |
