1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-11 16:40:45 -08:00
emacs/test/lisp/progmodes/java-ts-mode-resources/indent.erts
Theodor Thornhill 229d0772e2 Add test for java indentation (bug#61115)
* test/lisp/progmodes/java-ts-mode-resources/indent.erts: Add new test
case.
2023-02-04 09:26:54 +01:00

53 lines
635 B
Text

Code:
(lambda ()
(setq indent-tabs-mode nil)
(setq java-ts-mode-indent-offset 2)
(java-ts-mode)
(indent-region (point-min) (point-max)))
Point-Char: |
Name: Basic
=-=
public class Basic {
public void basic() {
return;
}
}
=-=-=
Name: Empty Line
=-=
public class EmptyLine {
public void emptyLine() {
|
}
}
=-=-=
Name: Statements
=-=
if (x) {
for (var foo : foos) {
|
}
} else if (y) {
for (int i = 0; x < foos.size(); i++) {
return;
}
} else {
return;
}
=-=-=
Name: Field declaration without access modifier (bug#61115)
=-=
public class T {
@Autowired
String a;
}
=-=-=