]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/ruby-mode.el
ruby-mode: Detect regexps after `!'
[gnu-emacs] / lisp / progmodes / ruby-mode.el
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.
      "\\|[?:] "