Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/yaml/indents.scm')
-rw-r--r--runtime/queries/yaml/indents.scm36
1 files changed, 1 insertions, 35 deletions
diff --git a/runtime/queries/yaml/indents.scm b/runtime/queries/yaml/indents.scm
index 87853eb6..70a00b69 100644
--- a/runtime/queries/yaml/indents.scm
+++ b/runtime/queries/yaml/indents.scm
@@ -1,36 +1,2 @@
-(block_scalar) @indent @extend
+(block_mapping_pair) @indent
-; indent sequence items only if they span more than one line, e.g.
-;
-; - foo:
-; bar: baz
-; - quux:
-; bar: baz
-;
-; but not
-;
-; - foo
-; - bar
-; - baz
-((block_sequence_item) @item @indent.always @extend
- (#not-one-line? @item))
-
-; map pair where without a key
-;
-; foo:
-((block_mapping_pair
- key: (_) @key
- !value
- ) @indent.always @extend
-)
-
-; map pair where the key and value are on different lines
-;
-; foo:
-; bar: baz
-((block_mapping_pair
- key: (_) @key
- value: (_) @val
- (#not-same-line? @key @val)
- ) @indent.always @extend
-) \ No newline at end of file