emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114298: * lisp/progmodes/ruby-mode.el (ruby-operato


From: Dmitry Gutov
Subject: [Emacs-diffs] trunk r114298: * lisp/progmodes/ruby-mode.el (ruby-operator-re): Consider line
Date: Sun, 15 Sep 2013 23:42:32 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114298
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/15369
committer: Dmitry Gutov <address@hidden>
branch nick: trunk
timestamp: Mon 2013-09-16 02:42:26 +0300
message:
  * lisp/progmodes/ruby-mode.el (ruby-operator-re): Consider line
  continuation character an operator, as far as indentation is
  concerned.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/progmodes/ruby-mode.el    
rubymode.el-20091113204419-o5vbwnq5f7feedwu-8804
  test/indent/ruby.rb            ruby.rb-20120424165921-h044139hbrd7snvw-1
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-09-15 16:08:04 +0000
+++ b/lisp/ChangeLog    2013-09-15 23:42:26 +0000
@@ -1,3 +1,9 @@
+2013-09-15  Dmitry Gutov  <address@hidden>
+
+       * 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  <address@hidden>
 
        * window.el (window--state-put-2): Don't process buffer state

=== modified file 'lisp/progmodes/ruby-mode.el'
--- a/lisp/progmodes/ruby-mode.el       2013-09-12 05:43:55 +0000
+++ b/lisp/progmodes/ruby-mode.el       2013-09-15 23:42:26 +0000
@@ -132,7 +132,7 @@
           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_"

=== modified file 'test/indent/ruby.rb'
--- a/test/indent/ruby.rb       2013-09-03 00:29:10 +0000
+++ b/test/indent/ruby.rb       2013-09-15 23:42:26 +0000
@@ -71,3 +71,7 @@
 if something == :==
   do_something
 end
+
+# Bug#15369
+MSG = 'Separate every 3 digits in the integer portion of a number' \
+  'with underscores(_).'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]