summaryrefslogtreecommitdiff
path: root/test/indent/sh
AgeCommit message (Collapse)Author
2020-09-26Improve shell indentation implementation.Simon Fowler
Use the custom object match command for copying indentation of blocks, rather than simply increasing/decreasing indentation when start and end statements are encountered. This fixes an issue where a newline added after an already correctly placed `else` or `fi` would trigger an unnecessary deindent. Tests have been added to ensure no regression in this behaviour.
2019-07-01Fix indent/sh/deindent-after-esac test caseMaxime Coste
2019-06-30Add tests.Simon Fowler
Probably overkill, but at least this is comprehensive . . .