Fix bug#17732
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 16 Jun 2014 03:33:29 +0000 (06:33 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 16 Jun 2014 03:33:29 +0000 (06:33 +0300)
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Don't fontify
`!' in `!~' with `font-lock-negation-char-face'.

lisp/ChangeLog
lisp/progmodes/ruby-mode.el

index be263c8..0734216 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-16  Dmitry  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-font-lock-keywords): Don't fontify
+       `!' in `!~' with `font-lock-negation-char-face'.  (Bug#17732)
+
 2014-06-15  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/dbus.el (dbus-call-method): Push only non D-Bus events into
index 74edf7a..3c20279 100644 (file)
@@ -2152,7 +2152,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.