summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorTheodor Thornhill <theo@thornhill.no>2023-02-05 08:49:08 +0100
committerTheodor Thornhill <theo@thornhill.no>2023-02-06 07:43:37 +0100
commit5a6dfab1e4d5d89e5d5ff3bef73279926f067dbc (patch)
tree7e603133217c4cc9766564a07c9c3ee334af26c9 /lisp/emacs-lisp
parentc3262216abbb9ea04e1d3af25df1f9743efd1513 (diff)
downloademacs-5a6dfab1e4d5d89e5d5ff3bef73279926f067dbc.tar.gz
emacs-5a6dfab1e4d5d89e5d5ff3bef73279926f067dbc.tar.bz2
emacs-5a6dfab1e4d5d89e5d5ff3bef73279926f067dbc.zip
Use c-ts-common-statement-offset in java-ts-mode (bug#61142)
* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): Add new matchers to enable c-ts-common machinery. (java-ts-mode): Add regexps. * lisp/progmodes/c-ts-common.el (c-ts-common-statement-offset): Fix typo in documentation and use the new if statement helpers. (c-ts-common-if-statement-regexp): New defvar. (c-ts-common-nestable-if-statement-p): New defvar. (c-ts-common--fix-nestable-if-statement): New helper. * test/lisp/progmodes/c-ts-mode-resources/indent.erts: Add test for complicated bracket matching indentation. * lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): Add indent rules for bracketless statements.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions