bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#16907: 24.3.50; [ruby-mode] %w/W literals have incorrect indentation


From: Dmitry Gutov
Subject: bug#16907: 24.3.50; [ruby-mode] %w/W literals have incorrect indentation
Date: Sat, 01 Mar 2014 15:57:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

(Please keep it in Cc).

On 01.03.2014 13:00, Bozhidar Batsov wrote:
2. Tokenize the elements inside the above literals without regard to
characters used in them. `ruby-smie--backward-token' and its counterpart
would have to be able to easily know when it's inside such literal.

Alternatively, still propertize them as "general strings", but replace
`smie-indent-inside-string' in `smie-indent-functions' with a
specialized version that would look at what the string begins with.
Option 1 seems better/cleaner to me,

Option 1 is everything before "Alternatively". I'm not sure how to implement the item 2 in it.





reply via email to

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