diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-26 21:43:18 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-28 19:54:26 +0100 |
| commit | 7f7ef0af9d47906d1a20c59b7eae3adbf93acd04 (patch) | |
| tree | 768fdc16e2e8e33c4d28243ededa4fe48ad3d7d3 /queries/c | |
| parent | highlights(python): add support for pattern matching (diff) | |
| download | nvim-treesitter-7f7ef0af9d47906d1a20c59b7eae3adbf93acd04.tar nvim-treesitter-7f7ef0af9d47906d1a20c59b7eae3adbf93acd04.tar.gz nvim-treesitter-7f7ef0af9d47906d1a20c59b7eae3adbf93acd04.tar.bz2 nvim-treesitter-7f7ef0af9d47906d1a20c59b7eae3adbf93acd04.tar.lz nvim-treesitter-7f7ef0af9d47906d1a20c59b7eae3adbf93acd04.tar.xz nvim-treesitter-7f7ef0af9d47906d1a20c59b7eae3adbf93acd04.tar.zst nvim-treesitter-7f7ef0af9d47906d1a20c59b7eae3adbf93acd04.zip | |
folds(c): fold raw `compound_statement`s
This will fold in particular around raw braces
as reported in #2359 while avoiding to have double folds
at functions+braces.
Diffstat (limited to 'queries/c')
| -rw-r--r-- | queries/c/folds.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/c/folds.scm b/queries/c/folds.scm index 9ef083e0c..80c3039b6 100644 --- a/queries/c/folds.scm +++ b/queries/c/folds.scm @@ -13,6 +13,7 @@ (preproc_else) (preproc_ifdef) (initializer_list) - (compound_statement) ] @fold + (compound_statement + (compound_statement) @fold) |
