Backport: ruby-mode: Detect regexps after `!'
Fixes: debbugs:19285
* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Detect
regexps after `!'.
(cherry picked from commit 8854b9cf52
)
This commit is contained in:
parent
f74843a7f1
commit
1c4900d953
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-03-20 Dmitry Gutov <dgutov@yandex.ru>
|
||||
|
||||
* progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Detect
|
||||
regexps after `!'. (Bug#19285)
|
||||
|
||||
2015-03-20 Dmitry Gutov <dgutov@yandex.ru>
|
||||
|
||||
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Use
|
||||
|
|
|
@ -1777,7 +1777,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.
|
||||
"\\|[?:] "
|
||||
|
|
Loading…
Add table
Reference in a new issue