* 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.
"Regexp to match symbols.")
(defconst ruby-endless-method-head-re
- (format " *\\(self\\.\\)?%s+[?!]? *\\(([^()]*)\\)? +=" ruby-symbol-re)
+ (format " *\\(%s+\\.\\)?%s+[?!]? *\\(([^()]*)\\)? +="
+ ruby-symbol-re ruby-symbol-re)
"Regexp to match the beginning of an endless method definition.
It should match the part after \"def\" and until \"=\".")
baz,
bar
)
- hello
+ def baz.full_name = "#{bar} 3"
+
+ baz
end
end