summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2012-10-30 22:45:34 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2012-10-30 22:45:34 -0400
commitb08b6da7fe21922d7e8838847cd065c88597b191 (patch)
treedde470b2f64a1fc9d68550f45266528eec27cb10 /test
parent86a7968c86b150c59ef62d27d2b139be18926fc2 (diff)
downloademacs-b08b6da7fe21922d7e8838847cd065c88597b191.tar.gz
* lisp/progmodes/sh-script.el (sh--inside-arithmetic-expression): New func.
(sh-font-lock-open-heredoc): Use it. Fixes: debbugs:12770
Diffstat (limited to 'test')
-rwxr-xr-xtest/indent/perl.perl5
-rwxr-xr-xtest/indent/shell.sh4
2 files changed, 9 insertions, 0 deletions
diff --git a/test/indent/perl.perl b/test/indent/perl.perl
new file mode 100755
index 00000000000..2411c96a5e4
--- /dev/null
+++ b/test/indent/perl.perl
@@ -0,0 +1,5 @@
+#!/usr/bin/perl
+# -*- eval: (bug-reference-mode 1) -*-
+
+$fileType_filesButNot # bug#12373?
+ = join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} );
diff --git a/test/indent/shell.sh b/test/indent/shell.sh
index 895a9325b7e..0636e62a062 100755
--- a/test/indent/shell.sh
+++ b/test/indent/shell.sh
@@ -5,6 +5,10 @@ setlock -n /tmp/getmail.lock && echo getmail isn\'t running
# adsgsdg
+echo -n $(( 5 << 2 ))
+# This should not be treated as a heredoc (bug#12770).
+2
+
declare -a VERSION
for i in $(ls "$PREFIX/sbin") ; do
echo -e $N')' $i