aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/java-ts-mode-resources (follow)
Commit message (Collapse)AuthorAgeFilesLines
* indent.erts (Code): Don't modify the global stateStefan Monnier2025-03-191-2/+2
| | | | | | * test/lisp/progmodes/java-ts-mode-resources/indent.erts (Code): Use `setq-local` and correspondingly move the remaining assignment after activating the major mode.
* ; Fix 'java-ts-mode' tests (Bug#77070)john muhl2025-03-171-1/+1
| | | | | * test/lisp/progmodes/java-ts-mode-resources/indent.erts: Set 'indent-tabs-mode' later.
* Use c-ts-common baseline rule in java-ts-mode (bug#75154)Yuan Fu2025-03-161-0/+28
| | | | | | | | | | | | | | | Use it for function parameters. * lisp/progmodes/java-ts-mode.el: (java-ts-mode--standalone-predicate): New function. (java-ts-mode--indent-rules): Comment out rules for function parameters and statements, and add c-ts-common-baseline-indent-rule as fallback. (java-ts-mode): Setup. (java-ts-mode--first-line-on-multi-line-string): Mark BOL as unused. * test/lisp/progmodes/java-ts-mode-resources/indent.erts: New test.
* java-ts-mode: Indentation for opening brace on a separate lineDmitry Gutov2024-02-171-0/+31
| | | | | | | | * lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): Support putting the opening brace on a separate line (bug#67556). * test/lisp/progmodes/java-ts-mode-resources/indent.erts: Add a test.
* Backport: Add more java indentation testsTheodor Thornhill2023-11-211-16/+75
| | | | | | | * test/lisp/progmodes/java-ts-mode-resources/indent.erts: Use default indent offset, and tweak the indentation examples. (cherry picked from commit dbe7803aa1e8249bd70f67f25f19aedabeb9cc22)
* Backport: Add test for java indentation (bug#61115)Theodor Thornhill2023-11-211-0/+9
| | | | | | | * test/lisp/progmodes/java-ts-mode-resources/indent.erts: Add new test case. (cherry picked from commit 229d0772e235f51812ed8020a31f9a8de366c7ba)
* Backport: Add some basic tests for java-ts-mode and typescript-ts-modeTheodor Thornhill2023-11-212-0/+198
* test/lisp/progmodes/java-ts-mode-resources/indent.erts: New file with tests for indentation. * test/lisp/progmodes/java-ts-mode-resources/movement.erts: New file with tests for movement. * test/lisp/progmodes/java-ts-mode-tests.el: New tests. * test/lisp/progmodes/typescript-ts-mode-resources/indent.erts: New file with tests for indentation. * test/lisp/progmodes/typescript-ts-mode-tests.el: New tests. (cherry picked from commit c8dd37b16c574beda900d4ee48ac7b4ab4a2ee56)