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.scm | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/runtime/queries/yaml/indents.scm b/runtime/queries/yaml/indents.scm index 87853eb6..a318edd7 100644 --- a/runtime/queries/yaml/indents.scm +++ b/runtime/queries/yaml/indents.scm @@ -1,36 +1,5 @@ (block_scalar) @indent @extend -; 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)) +(block_mapping_pair) @indent -; 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 +(block_sequence_item) @indent |