From: Yukihiro Matsumoto Date: 2007-01-24T18:06:59+09:00 Subject: Re: BUG: ruby-mode.el /Today's Comic/ Hi, In message "Re: BUG: ruby-mode.el /Today's Comic/" on Wed, 24 Jan 2007 05:55:06 +0900, "Weber" writes: |Hi all |This regexp seems to break ruby-mode parser or something like that (I'm |not an advanced emacs user) Could you try the following patch for ruby-mode.el? matz. diff --git a/ChangeLog b/ChangeLog index 1a51f52..516582e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 24 18:05:39 2007 Yukihiro Matsumoto + + * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fix + regexp font-lock bug. [ruby-talk:235758] + Tue Jan 23 11:02:33 2007 Yukihiro Matsumoto * lib/webrick/httprequest.rb (WEBrick::HTTPRequest::read_line): diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 825839f..4816488 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -1013,7 +1013,7 @@ balanced expression is found." ;; ?' ?" ?` 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))