From 1a49d068a7aa4305628c9a06083d382215fba574 Mon Sep 17 00:00:00 2001 From: Phelipe Teles Date: Sun, 5 Jun 2022 22:07:37 -0300 Subject: [PATCH] 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. --- queries/yaml/indents.scm | 2 ++ 1 file changed, 2 insertions(+) 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