unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15369: 24.3; Incorrect indentation after line continuation character in ruby-mode
@ 2013-09-13 13:59 Bozhidar Batsov
  2013-09-15 23:46 ` Dmitry Gutov
  0 siblings, 1 reply; 2+ messages in thread
From: Bozhidar Batsov @ 2013-09-13 13:59 UTC (permalink / raw)
  To: 15369

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

The line continuation character is not properly treated by ruby-mode. Here's how the indentation after `\` works now:

MSG = 'Separate every 3 digits in the integer portion of a number' \
'with underscores(_).'


Pretty sure the second line should be indented one level, since we're continuing the statement from the previous line:

MSG = 'Separate every 3 digits in the integer portion of a number' \
  'with underscores(_).'


-- 
Cheers,
Bozhidar


[-- Attachment #2: Type: text/html, Size: 856 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#15369: 24.3; Incorrect indentation after line continuation character in ruby-mode
  2013-09-13 13:59 bug#15369: 24.3; Incorrect indentation after line continuation character in ruby-mode Bozhidar Batsov
@ 2013-09-15 23:46 ` Dmitry Gutov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Gutov @ 2013-09-15 23:46 UTC (permalink / raw)
  To: Bozhidar Batsov; +Cc: 15369

Version: 24.4

Bozhidar Batsov <bozhidar@batsov.com> writes:
> The line continuation character is not properly treated by ruby-mode.
> Here's how the indentation after `\` works now:
>
> MSG = 'Separate every 3 digits in the integer portion of a number' \
> 'with underscores(_).'
>
> Pretty sure the second line should be indented one level, since we're
> continuing the statement from the previous line:
>
> MSG = 'Separate every 3 digits in the integer portion of a number' \
> 'with underscores(_).'

Fixed in 114298.

But it could break some edge cases, so please be on lookout for that.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-15 23:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-13 13:59 bug#15369: 24.3; Incorrect indentation after line continuation character in ruby-mode Bozhidar Batsov
2013-09-15 23:46 ` Dmitry Gutov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).