1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
emacs/test/lisp/progmodes/lua-ts-mode-resources
john muhl 73d2b829f0
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.
2024-05-08 20:36:37 -07:00
..
font-lock.lua Add font-lock tests for lua-ts-mode (bug#67605) 2023-12-09 10:57:22 +02:00
indent.erts Improve indentation in 'lua-ts-mode' (bug#70785) 2024-05-08 20:36:37 -07:00
movement.erts
which-function.lua Fix which-function error in 'lua-ts-mode' (bug#70515) 2024-04-25 18:39:30 +03:00