emacs/test/lisp/progmodes/cperl-mode-resources/cperl-bug-30393.pl
Harald Jörg 84f74136d3 cperl-mode: Fix indentation for Emacs 26
* lisp/progmodes/cperl-mode.el (cperl-mode): Add a fix
which is only required for Emacs versions older than 27.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug30393):
Add a test to verify correct indentation (bug#30393).
2020-11-03 15:28:40 +01:00

19 lines
603 B
Perl

# -------- bug#30393: input --------
#
my $sql = "insert into jobs (id, priority) values (1, 2);";
my $sth = $dbh->prepare($sql) or die "bother";
my $sql = "insert into jobs
(id, priority)
values (1, 2);";
my $sth = $dbh->prepare($sql) or die "bother";
# -------- bug#30393: expected output --------
#
my $sql = "insert into jobs (id, priority) values (1, 2);";
my $sth = $dbh->prepare($sql) or die "bother";
my $sql = "insert into jobs
(id, priority)
values (1, 2);";
my $sth = $dbh->prepare($sql) or die "bother";
# -------- bug#30393: end --------