diff options
| author | Stefan Monnier | 2012-10-30 22:45:34 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-10-30 22:45:34 -0400 |
| commit | b08b6da7fe21922d7e8838847cd065c88597b191 (patch) | |
| tree | dde470b2f64a1fc9d68550f45266528eec27cb10 /test | |
| parent | 86a7968c86b150c59ef62d27d2b139be18926fc2 (diff) | |
| download | emacs-b08b6da7fe21922d7e8838847cd065c88597b191.tar.gz emacs-b08b6da7fe21922d7e8838847cd065c88597b191.zip | |
* 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-x | test/indent/perl.perl | 5 | ||||
| -rwxr-xr-x | test/indent/shell.sh | 4 |
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 @@ | |||
| 1 | #!/usr/bin/perl | ||
| 2 | # -*- eval: (bug-reference-mode 1) -*- | ||
| 3 | |||
| 4 | $fileType_filesButNot # bug#12373? | ||
| 5 | = 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 | |||
| 5 | 5 | ||
| 6 | # adsgsdg | 6 | # adsgsdg |
| 7 | 7 | ||
| 8 | echo -n $(( 5 << 2 )) | ||
| 9 | # This should not be treated as a heredoc (bug#12770). | ||
| 10 | 2 | ||
| 11 | |||
| 8 | declare -a VERSION | 12 | declare -a VERSION |
| 9 | for i in $(ls "$PREFIX/sbin") ; do | 13 | for i in $(ls "$PREFIX/sbin") ; do |
| 10 | echo -e $N')' $i | 14 | echo -e $N')' $i |