Commit 8854b9cf authored by Dmitry Gutov's avatar Dmitry Gutov

ruby-mode: Detect regexps after `!'

Fixes: debbugs:19285

* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Detect
regexps after `!'.
parent 4fab7bad
......@@ -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>
......
......@@ -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.
"\\|[?:] "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment