Textmate's Ruby grammar appears to get confused by the
but adding a comment after the closing brace throws things off:
foo = {
"bar" => 42 } # comment breaks indentation
I tend to use "Indent Line" (⌥⌘[) quite a bit, and this behaviour makes it pretty hard to easily re-indent nested data structures, e.g.
"name" => "James Jameson"
"name" => "Robert Robertson"
"name" => "William Williams"
The problem seems to be limited to Ruby mode; other language grammars (e.g. Java, Javascript) seem to be unaffacted.
Am I the only one experiencing this? Any bright ideas?