glynnforrest / salt-mode

Emacs major mode for Salt States

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First line is indented if it ends in a colon

wwentland opened this issue · comments

When entering the following content yaml-mode currently indents wrongly.

--- expected
foo:
  - bar: baz
  - foo: 1
--- yaml-mode
foo:
  - bar: baz
    - foo: 1
--- salt-mode
  foo:
    - bar: baz
      - foo: 1

The indentation of sequence elements seems to be broken in yaml-mode also (cf. yoshiki/yaml-mode#49) but the incorrect indentation of the first line appears to be specific to salt-mode and is rather irritating given that a SLS often starts like that :)

@BABILEN I've just pushed a commit which should fix this. Please re-open if it doesn't.

It does indeed. Thank you!