On 2013-09-17 11:17, Allan Odgaard wrote:
In the C bundle this was fixed by
https://github.com/textmate/c.tmbundle/commit/776da04eda90a8af9ae4e0d20381765caaca5655
Basically the indent patterns must deal with the user having typed ‘{}’
and decrease indent for that case, because of ‘indent as you type’ and
auto-pairing of characters.
Ok, thanks.
You mean pressing return here ‘{‸}’ will insert ‘\n\t‸\n’?
Yes, exactly.
In 2.0 this is done by a snippet scoped to “between empty pairs”. For
this to work, we require the grammar to assign punctuation scopes to
braces (and other paired characters where it should work),
I can't find that snippet. Could you like to it please. Or do you mean
it will automatically work if I assign punctuation scopes to braces?
--
/Jacob Carlborg
_______________________________________________
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev