I like to comment long spans of code thusly:
if (a_reason) { for (whatever) { while (something) { ... some code } // while (something) } // for (whatever) } // if (a_reason)
I can't seem to find a way to tell TextMate that having comments after the closing brace is okay. I've tried variations on: foldingStopMarker = '**/|^\s*}|^\s*}.*'; to no avail. TextMate won't un-indent the brace.
Any help appreciated.
Regards, JJ
--- Help everyone. If you can't do that, then at least be nice.
On 10/1/2006, at 20:05, John Johnson wrote:
The foldingStopMarker is for foldings, which does catch them by default (for C/Obj-C/C++ at least):
Maybe you're referring to indent instead? If so, you want to change the indentation rules instead: http://macromates.com/textmate/manual/ appendix#indentation_rules