mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
05d1196203
commit
dd939a3886
1 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,11 @@ Emacs to Ruby."
|
|||
))
|
||||
))
|
||||
|
||||
;; monkey-patching ruby-mode.el in Emacs 24, as r49872.
|
||||
(when (and (boundp 'ruby-syntax-before-regexp-re)
|
||||
(not (string-match ruby-syntax-before-regexp-re "foo {|" 1)))
|
||||
(replace-regexp-in-string "\\[\\[" "\\&{|" ruby-syntax-before-regexp-re))
|
||||
|
||||
(provide 'ruby-additional)
|
||||
|
||||
;;; ruby-additional.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue