ruby-changes:37791
From: nobu <ko1@a...>
Date: Fri, 6 Mar 2015 21:12:26 +0900 (JST)
Subject: [ruby-changes:37791] nobu:r49872 (trunk): ruby-mode.el: fix regexp syntax
nobu 2015-03-06 21:12:11 +0900 (Fri, 06 Mar 2015) New Revision: 49872 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49872 Log: ruby-mode.el: fix regexp syntax * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): division operator can't follow '{' and '|' too. Modified files: trunk/misc/ruby-mode.el Index: misc/ruby-mode.el =================================================================== --- misc/ruby-mode.el (revision 49871) +++ misc/ruby-mode.el (revision 49872) @@ -1304,7 +1304,7 @@ balanced expression is found." https://github.com/ruby/ruby/blob/trunk/misc/ruby-mode.el#L1304 ;; ?' ?" ?` are ascii codes ("\\(^\\|[^\\\\]\\)\\(\\\\\\\\\\)*[?$]\\([#\"'`]\\)" 3 (1 . nil)) ;; regexps - ("\\(^\\|[[=(,~?:;<>]\\|\\(^\\|\\s \\)\\(if\\|elsif\\|unless\\|while\\|until\\|when\\|and\\|or\\|&&\\|||\\)\\|g?sub!?\\|scan\\|split!?\\)\\s *\\(/\\)[^/\n\\\\]*\\(\\\\.[^/\n\\\\]*\\)*\\(/\\)" + ("\\(^\\|[[{|=(,~?:;<>]\\|\\(^\\|\\s \\)\\(if\\|elsif\\|unless\\|while\\|until\\|when\\|and\\|or\\|&&\\|||\\)\\|g?sub!?\\|scan\\|split!?\\)\\s *\\(/\\)[^/\n\\\\]*\\(\\\\.[^/\n\\\\]*\\)*\\(/\\)" (4 (7 . ?/)) (6 (7 . ?/))) ("^\\(=\\)begin\\(\\s \\|$\\)" 1 (7 . nil)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/