diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-07 01:59:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-07 01:59:32 +0000 |
commit | dd939a38869d04be187abd231f18994bed4aa85f (patch) | |
tree | e900ad0d63e0e78de74705645812417effb106fc /misc | |
parent | 05d119620308b71c5a6c17b18e78da9e299a97b4 (diff) |
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
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-additional.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/ruby-additional.el b/misc/ruby-additional.el index b77b5260d0..46c3cd23f2 100644 --- a/misc/ruby-additional.el +++ b/misc/ruby-additional.el @@ -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 |