summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2014-06-24 16:16:10 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2014-06-24 16:16:10 -0400
commit370ceb22102e02a25516e43a61da0c9a9d6e1579 (patch)
tree1d9dec72a58f9eec131fcd4b63fd80672a0c3679 /test
parent2394ef283c781297f3a1da79c8c8c92ca9d1b5e5 (diff)
downloademacs-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')
-rwxr-xr-xtest/indent/shell.sh7
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