* lisp/progmodes/ruby-mode.el (ruby-operator-re): Consider line

continuation character an operator, as far as indentation is
concerned.

Fixes: debbugs:15369
This commit is contained in:
Dmitry Gutov 2013-09-16 02:42:26 +03:00
parent 745d3809b6
commit 578c21bc03
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2013-09-15 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-operator-re): Consider line
continuation character an operator, as far as indentation is
concerned (Bug#15369).
2013-09-15 Martin Rudalics <rudalics@gmx.at>
* window.el (window--state-put-2): Don't process buffer state

View file

@ -132,7 +132,7 @@ This should only be called after matching against `ruby-here-doc-beg-re'."
ruby-block-end-re "\\|}\\|\\]\\)")
"Regexp to match where the indentation gets shallower.")
(defconst ruby-operator-re "[-,.+*/%&|^~=<>:]"
(defconst ruby-operator-re "[-,.+*/%&|^~=<>:]\\|\\\\$"
"Regexp to match operators.")
(defconst ruby-symbol-chars "a-zA-Z0-9_"

View file

@ -71,3 +71,7 @@ def test2 (arg)
if something == :==
do_something
end
# Bug#15369
MSG = 'Separate every 3 digits in the integer portion of a number' \
'with underscores(_).'