Fix some indentation problem with \; and pipes.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 24 Jun 2014 20:16:10 +0000 (16:16 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 24 Jun 2014 20:16:10 +0000 (16:16 -0400)
commit370ceb22102e02a25516e43a61da0c9a9d6e1579
tree1d9dec72a58f9eec131fcd4b63fd80672a0c3679
parent2394ef283c781297f3a1da79c8c8c92ca9d1b5e5
Fix some indentation problem with \; and pipes.
* lisp/progmodes/sh-script.el (sh-mode-syntax-table): Set syntax of ;|&.
(sh-smie--default-forward-token, sh-smie--default-backward-token):
New functions.
(sh-smie-sh-forward-token, sh-smie-sh-backward-token)
(sh-smie-rc-forward-token, sh-smie-rc-backward-token): Use them.
(sh-smie-sh-rules): Fix indentation of a pipe at BOL.

Fixes: debbugs:17842
lisp/ChangeLog
lisp/progmodes/sh-script.el
test/indent/shell.sh