summaryrefslogtreecommitdiff
path: root/test/manual
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2019-11-15 13:19:21 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2019-11-15 13:19:37 -0500
commit87347a5bbc2f044c51feea8d513fb1dcefa6f50e (patch)
treec55b202e8d7a3cd0dc0f2207ec22e9848b47c3b9 /test/manual
parent904146cf798122aa6610fdd5209986918dad043a (diff)
downloademacs-87347a5bbc2f044c51feea8d513fb1dcefa6f50e.tar.gz
* lisp/progmodes/perl-mode.el (perl-calculate-indent): Indent qw(...)
Fix initialization of `state`. Special-case `qw(...)` because we do want to indent its contents.
Diffstat (limited to 'test/manual')
-rwxr-xr-xtest/manual/indent/perl.perl6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/manual/indent/perl.perl b/test/manual/indent/perl.perl
index 06f32e7f090..853aec49245 100755
--- a/test/manual/indent/perl.perl
+++ b/test/manual/indent/perl.perl
@@ -5,6 +5,12 @@ sub add_funds($) {
return 0;
}
+# qw(...) is a quoted list of words, so we can and should indent its content!
+my @tutu = qw[
+ tata
+ titi
+ ];
+
my $hash = {
foo => 'bar',
format => 'some',