From: Dmitry Gutov Date: Mon, 16 Jun 2014 03:33:29 +0000 (+0300) Subject: Fix bug#17732 X-Git-Url: https://git.hcoop.net/bpt/emacs.git/commitdiff_plain/6a7faa16644364dc86e5b47c86be803664be94f7 Fix bug#17732 * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Don't fontify `!' in `!~' with `font-lock-negation-char-face'. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index be263c894e..0734216555 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-06-16 Dmitry + + * 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 * net/dbus.el (dbus-call-method): Push only non D-Bus events into diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 74edf7a680..3c20279600 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -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.