diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2022-12-19 02:21:51 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2022-12-19 02:22:53 +0200 |
commit | 9a751e0a38bb53c269efa034d089aaab821c2662 (patch) | |
tree | ca47cce18a529bc430d5f740e05e6d2cf58caeb9 /test/lisp | |
parent | ce7b7e5af3ddb2863c0c4f6f7c91d1b6c205f1a0 (diff) | |
download | emacs-9a751e0a38bb53c269efa034d089aaab821c2662.tar.gz emacs-9a751e0a38bb53c269efa034d089aaab821c2662.tar.bz2 emacs-9a751e0a38bb53c269efa034d089aaab821c2662.zip |
ruby-mode: Support endless singleton method definitions too
* lisp/progmodes/ruby-mode.el (ruby-endless-method-head-re):
Update to match not only 'self.' but 'xyz.' as well (bug#54702).
* test/lisp/progmodes/ruby-mode-resources/ruby.rb (Bar#foo=):
Update example.
Diffstat (limited to 'test/lisp')
-rw-r--r-- | test/lisp/progmodes/ruby-mode-resources/ruby.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/progmodes/ruby-mode-resources/ruby.rb b/test/lisp/progmodes/ruby-mode-resources/ruby.rb index 5636a4fc0e2..2451edaee22 100644 --- a/test/lisp/progmodes/ruby-mode-resources/ruby.rb +++ b/test/lisp/progmodes/ruby-mode-resources/ruby.rb @@ -533,6 +533,8 @@ class Bar baz, bar ) - hello + def baz.full_name = "#{bar} 3" + + baz end end |