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

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

bug#15208: 24.3; ruby-mode indentation bug when line ends with :==


From: Bozhidar Batsov
Subject: bug#15208: 24.3; ruby-mode indentation bug when line ends with :==
Date: Thu, 29 Aug 2013 18:46:10 +0300

Code like the following breaks the indentation logic of ruby-mode:

if something == :==
  do_something
end

ruby-mode wants to indent the code like this:

if something == :==
    do_something
end

Clearly the problem is that the `:==` symbol gets interpreted as `==`
operator and the second line is treated a statement
continuation. Probably other operators are affected as well.

In GNU Emacs 24.3.1 (x86_64-apple-darwin12.4.0, NS apple-appkit-1187.39)
 of 2013-08-12 on Bozhidars-MacBook-Pro.local
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure '--prefix=/usr/local/Cellar/emacs/24.3' '--without-dbus'
 '--enable-locallisppath=/usr/local/share/emacs/site-lisp'
 '--infodir=/usr/local/Cellar/emacs/24.3/share/info/emacs'
 '--without-gnutls' '--with-ns' '--disable-ns-self-contained' 'CC=cc''

-- 
Cheers,
Bozhidar


reply via email to

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