Skip to content

Commit b73e7fc

Browse files
authored
Merge pull request #613 from emacs-php/fix/emacs27-avoid-break-indentation
Ignore Emacs 27 break indentation in case
2 parents 547a31d + 6959a34 commit b73e7fc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/issue-186.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
case null:
2222
case false:
2323
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
24-
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
24+
echo 'test'; // Emacs27 breaks indentation in this case #612
2525
}
2626

2727
switch (true) {
@@ -37,3 +37,14 @@
3737
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
3838
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
3939
}
40+
41+
const AAA = 'AAA';
42+
const bbb = 'bbb';
43+
44+
switch (true) {
45+
case AAA:
46+
case bbb:
47+
case 111:
48+
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
49+
echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))
50+
}

0 commit comments

Comments
 (0)