ruby-mode: Expect regexp after { or | too
Fixes: debbugs:20026 * progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Expect beginning of regexp also after open brace or vertical bar.
This commit is contained in:
parent
d03ec1cf16
commit
dad0fc589c
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-03-08 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Expect
|
||||
beginning of regexp also after open brace or vertical bar.
|
||||
(Bug#20026)
|
||||
|
||||
2015-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* battery.el (battery-echo-area-format): Simplify default.
|
||||
|
|
|
@ -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.
|
||||
"\\|[?:] "
|
||||
|
|
Loading…
Add table
Reference in a new issue