mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
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.
This commit is contained in:
parent
5e8ec943f8
commit
1a49d068a7
1 changed files with 2 additions and 0 deletions
|
|
@ -2,3 +2,5 @@
|
|||
(block_mapping_pair)
|
||||
(block_sequence_item)
|
||||
] @indent
|
||||
|
||||
(ERROR) @auto
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue