Hi.
When using a construct:
x = case x when expr1 ... when expr2 ... else ... end
I find that TxMt does not correctly indent after the CR after "case x" and then de-dents after the first "when" so that:
x = case x when...
becomes:
x = case x when expr1
However it correctly indents when not assigning from case so that:
case x when...
becomes:
case x when expr1
Which seems like a bug.
M
-- Matt Mower :: http://matt.blogs.it/
On 26/11/2005, at 1:58, Matt Mower wrote:
I find that TxMt does not correctly indent after the CR after "case x" [...]
I think the problem is that indenting always after “case” could lead to extra indent when using the word in strings and comments. So it's currently required that the word appears at the beginning of the line.
But you're welcome to play with the increase indent pattern found in the Ruby bundle (the Miscellaneous preferences item) and submit any enhancements you might do.