From: Dmitry Gutov Date: Thu, 13 Mar 2014 13:37:27 +0000 (+0200) Subject: * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Fontify X-Git-Tag: emacs-24.3.90~197 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f44df94fa2c84abd0a14becd0da4f019237f15e;p=emacs.git * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Fontify multiple adjacent negation chars. Fixes: debbugs:17004 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e3589f888a9..99626641b08 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-03-13 Dmitry Gutov + + * progmodes/ruby-mode.el (ruby-font-lock-keywords): Fontify + multiple adjacent negation chars. (Bug#17004) + 2014-03-13 Tom Willemse (tiny change) * emacs-lisp/package.el (package--prepare-dependencies): diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index a5d8285c98e..fe9346047c6 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -2127,7 +2127,7 @@ See `font-lock-syntax-table'.") (ruby-match-expression-expansion 2 font-lock-variable-name-face t) ;; Negation char. - ("[^[:alnum:]_]\\(!\\)[^=]" + ("\\(?:^\\|[^[:alnum:]_]\\)\\(!+\\)[^=]" 1 font-lock-negation-char-face) ;; Character literals. ;; FIXME: Support longer escape sequences.