Fix propertization for lists of dicts with literal block
previously_broken_but_now_correct: - bash: | echo "Properties following this block were broken" displayName: "Incorrectly propertized with face 'yaml-block-literal"pull/81/head
parent
68fecb5f0d
commit
04c30eabb5
|
@ -0,0 +1,8 @@
|
|||
# Propertized incorrectly prior to PR
|
||||
example:
|
||||
- key1: Correctly propertized
|
||||
key2: |
|
||||
Correctly propertized.
|
||||
- key3: |
|
||||
Correctly propertized
|
||||
key4: Incorrectly propertized as part of preceding yaml-literal-block
|
|
@ -322,6 +322,8 @@ artificially limited to the value of
|
|||
(unless (looking-at yaml-blank-line-re)
|
||||
(setq min-level (min min-level (current-indentation))))
|
||||
(forward-line -1))
|
||||
(when (looking-at-p " *- ")
|
||||
(setq min-level (- min-level 2)))
|
||||
(cond
|
||||
((and (< (current-indentation) min-level)
|
||||
(looking-at yaml-block-literal-re))
|
||||
|
|
Loading…
Reference in New Issue