Rules: indentation: Fix B_SEQ instead of B_ENT

For example in this case, the scalar's parent is a B_ENT (only its
grandparent is a B_SEQ):

    - >
        multi
        line
proto/fix-indentation
Adrien Vergé 9 years ago
parent 44236077dd
commit f9198b7a9b

@ -233,7 +233,7 @@ def check_scalar_indentation(conf, token, context):
elif token.style in ('"', "'"):
return token.start_mark.column + 1
elif token.style in ('>', '|'):
if context['stack'][-1].type == B_SEQ:
if context['stack'][-1].type == B_ENT:
# - >
# multi
# line

Loading…
Cancel
Save