1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/test/lisp/progmodes
Aaron Jensen 16a7051888 Fix indentation of keyword argument arrays/hashes in ruby-mode
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Check for ':' and
'=>' as previous tokens, and handle symbols ending with ':' to
properly indent keyword argument arrays and hashes when
ruby-bracketed-args-indent is nil.

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--parent-call-or-bol):
Handle arrays/hashes that are children of 'pair' nodes (keyword
arguments) to ensure consistent indentation.

* test/lisp/progmodes/ruby-mode-resources/ruby-bracketed-args-indent.rb:
Add test cases for keyword argument arrays and hashes with both
symbol-colon and hash-rocket syntax.

When ruby-bracketed-args-indent is nil, arrays and hashes used as
keyword argument values now indent by ruby-indent-level from the
line start, matching the documented behavior and fixing inconsistent
indentation (bug#74517).

(https://lists.gnu.org/archive/html/emacs-devel/2025-11/msg00939.html)
2025-11-26 01:31:12 +02:00
..
autoconf-resources Improve autoconf-mode macro detection 2025-02-17 17:28:05 -08:00
c-ts-mode-resources Fix c-ts-mode indentation (bug#75442) 2025-01-12 22:23:36 -08:00
cperl-mode-resources ; cperl-mode.el: Indent labels only in code (Bug#79271) 2025-08-22 12:42:00 +02:00
csharp-mode-resources
elisp-mode-resources ; elisp-scope.el: Improve face specification handling. 2025-10-29 17:20:03 +01:00
elixir-ts-mode-resources
flymake-resources
go-ts-mode-resources Merge from origin/emacs-30 2025-03-01 10:01:54 -05:00
heex-ts-mode-resources
java-ts-mode-resources indent.erts (Code): Don't modify the global state 2025-03-19 15:53:37 -04:00
js-resources
lua-mode-resources ; Add tests for 'lua-mode' 2025-08-25 09:59:04 +08:00
lua-ts-mode-resources Fontify all comment delimiters in 'lua-ts-mode' 2025-08-30 11:31:34 +03:00
project-resources
ruby-mode-resources Fix indentation of keyword argument arrays/hashes in ruby-mode 2025-11-26 01:31:12 +02:00
rust-ts-mode-resources rust-ts-mode: handle invalid rust syntax without signaling 2025-08-21 19:59:04 +03:00
sh-script-resources
typescript-ts-mode-resources Fix typescript-ts-mode tenary indentation (bug#77901) 2025-06-01 16:14:12 -07:00
xref-resources
asm-mode-tests.el
autoconf-tests.el Improve autoconf-mode macro detection 2025-02-17 17:28:05 -08:00
bat-mode-tests.el
bug-reference-tests.el
c-ts-mode-tests.el
cc-mode-tests.el
compile-tests.el Check diagnostic types in compile-tests 2025-05-22 15:03:51 +02:00
cperl-mode-tests.el ; cperl-mode.el: Fix fontification error with signatures 2025-08-22 01:30:59 +02:00
csharp-mode-tests.el
eglot-tests.el Eglot: add two semtok tests 2025-11-13 22:18:46 +00:00
elisp-mode-tests.el ; Fix semantic highlighting in presence of shorthands 2025-10-21 16:12:11 +02:00
elixir-ts-mode-tests.el
etags-tests.el
executable-tests.el
f90-tests.el
flymake-tests.el Flymake: more ambitious cleanup in flymake-mode (bug#69809) 2025-01-14 17:47:17 +00:00
gdb-mi-tests.el
glasses-tests.el
go-ts-mode-tests.el Fix recently introduced test failure 2025-02-12 17:41:37 +01:00
grep-tests.el
heex-ts-mode-tests.el Improve elixir-ts--thing-settings. 2025-05-01 21:03:34 +03:00
hideshow-tests.el hideshow: Fix regressions. (Bug#79857) 2025-11-19 09:20:00 +02:00
java-ts-mode-tests.el
js-tests.el Avoid adding duplicate items to 'treesit-language-source-alist'. 2025-05-01 20:55:33 +03:00
lua-mode-tests.el ; Add tests for 'lua-mode' 2025-08-25 09:59:04 +08:00
lua-ts-mode-tests.el Fix lua-ts-mode-tests.el 2025-08-14 16:29:45 +02:00
make-mode-tests.el (makefile-dependency-regex): Fix bug#76759 2025-03-09 22:07:39 -04:00
octave-tests.el
opascal-tests.el
pascal-tests.el
peg-tests.el (peg-parse): Fix bug#78884 2025-06-27 23:12:40 -04:00
perl-mode-tests.el
project-tests.el
ps-mode-tests.el
python-tests.el Fix Python PDB tracking for remote inferior Python 2025-08-07 16:06:28 +03:00
ruby-mode-tests.el
ruby-ts-mode-tests.el
rust-ts-mode-tests.el rust-ts-mode: handle invalid rust syntax without signaling 2025-08-21 19:59:04 +03:00
scheme-tests.el
sh-script-tests.el
sql-tests.el
subword-tests.el
tcl-tests.el
typescript-ts-mode-tests.el ; Re-enable 'typescript-ts-mode' indentation tests 2025-02-25 01:27:49 +01:00
which-func-tests.el
xref-tests.el