]> code.delx.au - gnu-emacs/commitdiff
ruby-mode: Detect regexps after `!'
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 9 Mar 2015 03:53:58 +0000 (05:53 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 9 Mar 2015 03:53:58 +0000 (05:53 +0200)
Fixes: debbugs:19285
* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Detect
regexps after `!'.

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

index e1842973acbf6c86d31ed8dd916b30af705cd71a..b284ef16eafde816bc8cf7923c93e58bf73d2f03 100644 (file)
@@ -2,6 +2,8 @@
 
        * progmodes/ruby-mode.el (ruby-font-lock-keywords): Don't consider
        `=' a part of symbol when followed by `>'.  (Bug#18644)
+       (ruby-syntax-before-regexp-re): Detect regexps after `!'.
+       (Bug#19285)
 
 2015-03-09  Eli Zaretskii  <eliz@gnu.org>
 
index 06b1fcf1729364a2a266761a3cbd27d10204ecce..060bc847eb4d7371ba5f4a89e32561ba96319681 100644 (file)
@@ -1817,7 +1817,7 @@ It will be properly highlighted even when the call omits parens.")
   (defvar ruby-syntax-before-regexp-re
     (concat
      ;; Special tokens that can't be followed by a division operator.
-     "\\(^\\|[[{|=(,~;<>]"
+     "\\(^\\|[[{|=(,~;<>!]"
      ;; Distinguish ternary operator tokens.
      ;; FIXME: They don't really have to be separated with spaces.
      "\\|[?:] "