diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-02-06 18:43:49 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-02-07 15:37:21 +0100 |
| commit | bfcf03853f2a32bcd624c1d6cd7cfaafca59e74e (patch) | |
| tree | 68fd3c4de8eb6af8b422b2ed3f87cddf53bec711 /queries/yaml | |
| parent | Query: add regex injections (diff) | |
| download | nvim-treesitter-bfcf03853f2a32bcd624c1d6cd7cfaafca59e74e.tar nvim-treesitter-bfcf03853f2a32bcd624c1d6cd7cfaafca59e74e.tar.gz nvim-treesitter-bfcf03853f2a32bcd624c1d6cd7cfaafca59e74e.tar.bz2 nvim-treesitter-bfcf03853f2a32bcd624c1d6cd7cfaafca59e74e.tar.lz nvim-treesitter-bfcf03853f2a32bcd624c1d6cd7cfaafca59e74e.tar.xz nvim-treesitter-bfcf03853f2a32bcd624c1d6cd7cfaafca59e74e.tar.zst nvim-treesitter-bfcf03853f2a32bcd624c1d6cd7cfaafca59e74e.zip | |
Yaml: fix folds
Fix https://github.com/nvim-treesitter/nvim-treesitter/issues/887
(block_node) includes more nodes to fold, test with:
```yaml
days:
Monday:
- test: example
Tuesday:
- test: example
Wednesday:
- test: example
- test: example
Thursday:
- test: example
Friday:
- test: example
- foo: |
One
Two
Three
```
Diffstat (limited to 'queries/yaml')
| -rw-r--r-- | queries/yaml/folds.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/yaml/folds.scm b/queries/yaml/folds.scm index 9ee7e9291..f82378e63 100644 --- a/queries/yaml/folds.scm +++ b/queries/yaml/folds.scm @@ -1,3 +1,3 @@ [ - (block_mapping_pair) + (block_node) ] @fold |
