diff options
| author | Phelipe Teles <phelipe_teles@hotmail.com> | 2022-06-05 22:07:37 -0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-06-14 22:37:52 +0200 |
| commit | 1a49d068a7aa4305628c9a06083d382215fba574 (patch) | |
| tree | d4aa82cde894dbccfc211340f5fa81249c2fa5ff /queries/yaml | |
| parent | fix(indents/yaml): indent sequence/list items (diff) | |
| download | nvim-treesitter-1a49d068a7aa4305628c9a06083d382215fba574.tar nvim-treesitter-1a49d068a7aa4305628c9a06083d382215fba574.tar.gz nvim-treesitter-1a49d068a7aa4305628c9a06083d382215fba574.tar.bz2 nvim-treesitter-1a49d068a7aa4305628c9a06083d382215fba574.tar.lz nvim-treesitter-1a49d068a7aa4305628c9a06083d382215fba574.tar.xz nvim-treesitter-1a49d068a7aa4305628c9a06083d382215fba574.tar.zst nvim-treesitter-1a49d068a7aa4305628c9a06083d382215fba574.zip | |
fix(indents/yaml): improve error handling
This helps to solve the first issue reported at #1377.
The problem is that the line loses its indentation when we start
inserting a new mapping pair (specifically, when we enter the character
":").
The issue seems to be solved by auto indenting ERROR nodes.
Diffstat (limited to 'queries/yaml')
| -rw-r--r-- | queries/yaml/indents.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/queries/yaml/indents.scm b/queries/yaml/indents.scm index 23a173361..9c5223478 100644 --- a/queries/yaml/indents.scm +++ b/queries/yaml/indents.scm @@ -2,3 +2,5 @@ (block_mapping_pair) (block_sequence_item) ] @indent + +(ERROR) @auto |
