diff options
| author | Stefan Monnier | 2019-11-15 13:19:21 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2019-11-15 13:19:37 -0500 |
| commit | 87347a5bbc2f044c51feea8d513fb1dcefa6f50e (patch) | |
| tree | c55b202e8d7a3cd0dc0f2207ec22e9848b47c3b9 /test | |
| parent | 904146cf798122aa6610fdd5209986918dad043a (diff) | |
| download | emacs-87347a5bbc2f044c51feea8d513fb1dcefa6f50e.tar.gz emacs-87347a5bbc2f044c51feea8d513fb1dcefa6f50e.zip | |
* 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')
| -rwxr-xr-x | test/manual/indent/perl.perl | 6 |
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($) { | |||
| 5 | return 0; | 5 | return 0; |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | # qw(...) is a quoted list of words, so we can and should indent its content! | ||
| 9 | my @tutu = qw[ | ||
| 10 | tata | ||
| 11 | titi | ||
| 12 | ]; | ||
| 13 | |||
| 8 | my $hash = { | 14 | my $hash = { |
| 9 | foo => 'bar', | 15 | foo => 'bar', |
| 10 | format => 'some', | 16 | format => 'some', |