]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Fontify
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 13 Mar 2014 13:37:27 +0000 (15:37 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 13 Mar 2014 13:37:27 +0000 (15:37 +0200)
multiple adjacent negation chars.

Fixes: debbugs:17004
lisp/ChangeLog
lisp/progmodes/ruby-mode.el

index e3589f888a97eb4312faff98421e1c1ec6b65b51..99626641b08a97748315d20f501b4dda3a615a58 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-13  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-font-lock-keywords): Fontify
+       multiple adjacent negation chars.  (Bug#17004)
+
 2014-03-13  Tom Willemse  <tom@ryuslash.org>  (tiny change)
 
        * emacs-lisp/package.el (package--prepare-dependencies):
index a5d8285c98e87feaa6df85852483213936e5c123..fe9346047c6a0681a52002daa86ed5eebb1118ce 100644 (file)
@@ -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.