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 be263c894ee78c704204fd632c32d09f650abbf0..0734216555b72e02f8335f55266e6e4bcdcd138a 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 74edf7a680f341a735f99e406308daf71614e114..3c20279600eb9acbb1e364a2fd2bd8239bd3ff2f 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.