]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/ruby-mode.el (ruby-operator-re): Consider line
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 15 Sep 2013 23:42:26 +0000 (02:42 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 15 Sep 2013 23:42:26 +0000 (02:42 +0300)
continuation character an operator, as far as indentation is
concerned.

Fixes: debbugs:15369
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/indent/ruby.rb

index 01400a9600937176b0c069323a0c4a2341bb004d..44a81ee32fc5e9bc9df5a563d4822a34a6df0c05 100644 (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
index 902616e3023bfb75e3c322f9ab2376c59b893d54..95206c153901f8fe9867be2162ea83a02c3f120c 100644 (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_"
index af1bbb9d8ab26e4a6a9d8c2cc696eff99b42cab7..6c9b9775b4822a6e99c65515488308cc204a4d13 100644 (file)
@@ -71,3 +71,7 @@ end
 if something == :==
   do_something
 end
+
+# Bug#15369
+MSG = 'Separate every 3 digits in the integer portion of a number' \
+  'with underscores(_).'