From: adam@... (Adam Spiers) Date: 2001-11-17T00:48:52+09:00 Subject: [ruby-talk:25449] Re: ruby-mode.el In article <3B16441E.1FEB4443@larc.nasa.gov>, Bil Kleb wrote: > Where is the home for ruby-mode.el? I.e., where do I find the latest > source? It gets distributed with ruby itself, I think. > Has the fontification bug caused by /'s been fixed? Does this help? (Patches against ruby-mode.el in ruby 1.6.4) --- misc/ruby-mode.el.orig Wed Mar 21 08:04:12 2001 +++ misc/ruby-mode.el Thu Jun 21 14:32:27 2001 @@ -733,6 +733,10 @@ "\\|") "\\)\\>\\([^_]\\|$\\)") 2) + ;; regexps + '("/\\(\\(\\\\/\\|[^/\n]\\)*\\)/\\([iop]*\\)" + (1 font-lock-string-face) + (3 font-lock-constant-face)) ;; variables '("\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\(nil\\|self\\|true\\|false\\)\\b\\([^_]\\|$\\)" 2 font-lock-variable-name-face) I also have a patch for the %r() %w// style of quoting but it requires non-greedy regexps, which are not supported by GNU emacs 20.x.