[前][次][番号順一覧][スレッド一覧]

ruby-changes:37799

From: nobu <ko1@a...>
Date: Sat, 7 Mar 2015 10:59:39 +0900 (JST)
Subject: [ruby-changes:37799] nobu:r49880 (trunk): ruby-additional.el: monkey-patching ruby-mode.el

nobu	2015-03-07 10:59:32 +0900 (Sat, 07 Mar 2015)

  New Revision: 49880

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49880

  Log:
    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.

  Modified files:
    trunk/misc/ruby-additional.el
Index: misc/ruby-additional.el
===================================================================
--- misc/ruby-additional.el	(revision 49879)
+++ misc/ruby-additional.el	(revision 49880)
@@ -121,6 +121,11 @@ Emacs to Ruby." https://github.com/ruby/ruby/blob/trunk/misc/ruby-additional.el#L121
 	 ))
      ))
 
+;; 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]