From 1aa00f53bc4e2f5de019791be4c9d3ac7bc4e927 Mon Sep 17 00:00:00 2001 From: Miguel Carvajal Date: Wed, 10 Jan 2018 02:52:03 -0300 Subject: [PATCH] [ext/yaml] add indentation rules configuration --- extensions/yaml/language-configuration.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/yaml/language-configuration.json b/extensions/yaml/language-configuration.json index cc1aa26cde6..010d773d3f3 100644 --- a/extensions/yaml/language-configuration.json +++ b/extensions/yaml/language-configuration.json @@ -23,5 +23,9 @@ ], "folding": { "offSide": true + }, + "indentationRules": { + "increaseIndentPattern": "^\\s*.*(:|-) ?(&\\w+)?(\\{[^}\"']*|\\([^)\"']*)?$", + "decreaseIndentPattern": "^\\s+\\}$" } -} \ No newline at end of file +}