unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23815: 24.5; Ruby indentation incorrect when class has a member called "module"
@ 2016-06-21 13:57 Jesper.Eskilson
  2016-06-21 16:44 ` Dmitry Gutov
  0 siblings, 1 reply; 2+ messages in thread
From: Jesper.Eskilson @ 2016-06-21 13:57 UTC (permalink / raw)
  To: 23815

Hello,

If a ruby file contains the following (valid) Ruby code:

class Foo
  def foo()
    @module = ""
     end
  end

The Ruby emacs mode fails to realize that @module is a member, and
instead thinks it is a module.

--
Jesper Eskilson
jesper.eskilson@iar.com





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

* bug#23815: 24.5; Ruby indentation incorrect when class has a member called "module"
  2016-06-21 13:57 bug#23815: 24.5; Ruby indentation incorrect when class has a member called "module" Jesper.Eskilson
@ 2016-06-21 16:44 ` Dmitry Gutov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Gutov @ 2016-06-21 16:44 UTC (permalink / raw)
  To: Jesper.Eskilson, 23815-done

Version: 25.1

Hi Jesper,

On 06/21/2016 04:57 PM, Jesper.Eskilson@iar.com wrote:
> If a ruby file contains the following (valid) Ruby code:
>
> class Foo
>   def foo()
>     @module = ""
>      end
>   end
>
> The Ruby emacs mode fails to realize that @module is a member, and
> instead thinks it is a module.

It looks fixed in emacs-25, although I can't fixed the exact commit that 
did it now.

Please try out a pre-release snapshot of Emacs 25 when you have the chance.





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

end of thread, other threads:[~2016-06-21 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-21 13:57 bug#23815: 24.5; Ruby indentation incorrect when class has a member called "module" Jesper.Eskilson
2016-06-21 16:44 ` 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).