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:
I like to comment long spans of code thusly: [...] 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.
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
I'll have a look, I'm sure you are correct. I trust you vacation was enjoyable?
Regards, JJ
On 22-Jan-2006, at 20:27, Allan Odgaard wrote:
On 10/1/2006, at 20:05, John Johnson wrote:
I like to comment long spans of code thusly: [...] 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.
The foldingStopMarker is for foldings, which does catch them by default (for C/Obj-C/C++ at least):
<TextMateScreenSnapz106.png> 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
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
--- Help everyone. If you can't do that, then at least be nice.