[Gd-chatter] [Bug 7355] Dylan Mode indents incorrectly when "local method" is on one line
bugzilla-daemon at gwydiondylan.org
bugzilla-daemon at gwydiondylan.org
Thu May 17 16:04:37 CEST 2007
http://www.gwydiondylan.org/cgi-bin/bugzilla/show_bug.cgi?id=7355
gd-bugs at chris-page.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Comment #1 from gd-bugs at chris-page.org 2007-05-17 16:02 -------
Subversion Revision #11357:
Dylan Mode now indents multiple local methods correctly when "local method" is
on one line. It indents all the methods to align with the first occurrence of
the word "method".
The primary problem was that, while searching backwards for the start of the
current expression/constituent, it stopped at "end," because the regular
expression erroneously required at least one space ("end[ \t]+"). I changed it
to "end[ \t]*" and now it can search backwards to locate the start of the
"local" constituent.
With that resolved, I added some code that gets the column position of the "m"
in "local method" and returns that as the indentation depth when the "local"
constituent spans multiple lines.
--
Configure bugmail: http://www.gwydiondylan.org/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the chatter
mailing list