Skip to content

Commit dd939a3

Browse files
committed
ruby-additional.el: monkey-patching ruby-mode.el
* misc/ruby-additional.el: monkey-patch ruby-mode.el in Emacs 24, to fix regexp parsing as r49872. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 05d1196 commit dd939a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

misc/ruby-additional.el

+5
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ Emacs to Ruby."
121121
))
122122
))
123123

124+
;; monkey-patching ruby-mode.el in Emacs 24, as r49872.
125+
(when (and (boundp 'ruby-syntax-before-regexp-re)
126+
(not (string-match ruby-syntax-before-regexp-re "foo {|" 1)))
127+
(replace-regexp-in-string "\\[\\[" "\\&{|" ruby-syntax-before-regexp-re))
128+
124129
(provide 'ruby-additional)
125130

126131
;;; ruby-additional.el ends here

0 commit comments

Comments
 (0)