summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorSimon Fowler <simon.fowler@anu.edu.au>2020-09-26 19:17:59 +1000
committerSimon Fowler <simon.fowler@anu.edu.au>2020-09-26 22:10:31 +1000
commit83277d5545463aa1af37bb3de5221fe28dec5eae (patch)
tree94480161dcf91987f9755b2f27cc30e5d36c26da /rc/tools/python
parentdd1a582b30cc17c3e484fe77b917485ff7a2ff16 (diff)
Improve shell indentation implementation.
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.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions