diff options
| author | Dmitry Gutov | 2022-12-19 02:21:51 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2022-12-19 02:22:53 +0200 |
| commit | 9a751e0a38bb53c269efa034d089aaab821c2662 (patch) | |
| tree | ca47cce18a529bc430d5f740e05e6d2cf58caeb9 /test/lisp/progmodes/ruby-mode-resources/ruby.rb | |
| parent | ce7b7e5af3ddb2863c0c4f6f7c91d1b6c205f1a0 (diff) | |
| download | emacs-9a751e0a38bb53c269efa034d089aaab821c2662.tar.gz 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/progmodes/ruby-mode-resources/ruby.rb')
| -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 | |||
| 533 | baz, | 533 | baz, |
| 534 | bar | 534 | bar |
| 535 | ) | 535 | ) |
| 536 | hello | 536 | def baz.full_name = "#{bar} 3" |
| 537 | |||
| 538 | baz | ||
| 537 | end | 539 | end |
| 538 | end | 540 | end |