From dd939a38869d04be187abd231f18994bed4aa85f Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Mar 2015 01:59:32 +0000 Subject: 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 --- misc/ruby-additional.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'misc') 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 -- cgit v1.2.3