diff options
| author | john muhl | 2024-05-03 15:51:01 -0500 |
|---|---|---|
| committer | Yuan Fu | 2024-05-08 20:36:37 -0700 |
| commit | 73d2b829f06124fec8b65eebc68e87da48808086 (patch) | |
| tree | ff90d3d6472c1b4f8627e688ae20d87540ed5021 /java | |
| parent | 4eb363acc825ef3aaa5468ab5e206ecab5883acb (diff) | |
| download | emacs-73d2b829f06124fec8b65eebc68e87da48808086.tar.gz emacs-73d2b829f06124fec8b65eebc68e87da48808086.zip | |
Improve indentation in 'lua-ts-mode' (bug#70785)
* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
- Ignore comments when aligning arguments, parameters and fields.
- Apply simpler rules to simpler usage of anonymous functions.
- Better handling of table as a function argument.
(lua-ts--comment-first-sibling-matcher):
(lua-ts--first-real-sibling-anchor):
(lua-ts--last-arg-function-call-matcher):
(lua-ts--top-level-function-call-matcher): New function.
(lua-ts--g-parent):
(lua-ts--g-g-parent): New function.
(lua-ts--g-g-g-parent): Use it.
* test/lisp/progmodes/lua-ts-mode-resources/indent.erts:
Add tests.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions