diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2014-06-24 16:16:10 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2014-06-24 16:16:10 -0400 |
commit | 370ceb22102e02a25516e43a61da0c9a9d6e1579 (patch) | |
tree | 1d9dec72a58f9eec131fcd4b63fd80672a0c3679 /test/indent | |
parent | 2394ef283c781297f3a1da79c8c8c92ca9d1b5e5 (diff) | |
download | emacs-370ceb22102e02a25516e43a61da0c9a9d6e1579.tar.gz |
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
Diffstat (limited to 'test/indent')
-rwxr-xr-x | test/indent/shell.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/indent/shell.sh b/test/indent/shell.sh index 8e831bb8f11..4a30739e2d9 100755 --- a/test/indent/shell.sh +++ b/test/indent/shell.sh @@ -41,6 +41,13 @@ for foo in bar; do # bug#17721 } done +filter_3 () # bug#17842 +{ + tr -d '"`' | tr ' ' ' ' | \ + awk -F\; -f filter.awk | \ + grep -v "^," | sort -t, -k2,2 +} + echo -n $(( 5 << 2 )) # This should not be treated as a heredoc (bug#12770). 2 |