I'm playing with some auto-indent rules, and I've come across a scenario that gives me trouble. Consider text (in fact valid code) that is written like this:
somescope { /* *} <--curly brace */ }
Now, if this text was properly indented, the three middle lines of code would be tabbed once to the right. But how can TextMate tell using its indentation rule logic that the curly brace on line 3 is within a multi-line comment?
-Jeremy S.
On Oct 21, 2007, at 11:08 AM, Jeremy Sachs wrote:
I'm playing with some auto-indent rules, and I've come across a scenario that gives me trouble. Consider text (in fact valid code) that is written like this:
somescope { /* *} <--curly brace */ }
The indention regex matches are limited to one line, there no way currently to solve this. It can be done for single line comments because the delimiter is on every line.