[TxMt] Re: Ruby hash indentation bug?
mdub at dogbiscuit.org
Wed Jan 4 01:49:11 UTC 2012
On 04/01/2012, at 4:03 AM, Adam Strzelecki wrote:
> Yes, there's little bug in Ruby indention settings, that does not take comment into consideration, go to: Edit Bundles… > Ruby > Settings > Indent and update:
> decreaseIndentPattern = '^\s*([}\]]\s*(\#|$)|(end|rescue|ensure|else|elsif|when)\b)';
Thanks Adam! That almost did the trick. I actually changed it to:
so that anything after the close-brace is ignored. Otherwise, the nested-hash example indents badly (due to a comma after the close-brace).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the textmate