I've been using TextMate to edit some C/C++ code, and I've noticed that the language module doesn't catch functions where the parameter list is split across multiple lines.
For example, it will catch this:
void myFunction( int a, int b ) { }
But it will not catch this:
void myFunction( int a, int b ) { }
I was just wondering whether the regular expression should be modifier to ignore any white-space and new-lines between elements of the function definition?
I'm using TextMate 1305.
-- Kind regards, James Milne
On 30. Oct 2006, at 12:37, James Milne wrote:
[...] I was just wondering whether the regular expression should be modifier to ignore any white-space and new-lines between elements of the function definition?
The problem is that the matches can only look at a single line at a time, so matching function methods over multiple lines is not really possible (without false positives).
Allan Odgaard throw-away-1@macromates.com wrote:
The problem is that the matches can only look at a single line at a time, so matching function methods over multiple lines is not really possible (without false positives).
This is a big show-stopper for me, and one of the few reasons why I still have to stick with TextWrangler for C++ editing.
Do you have any plans to do something about this?
On 31. Oct 2006, at 09:47, Stefan Haller wrote:
The problem is that the matches can only look at a single line at a time, so matching function methods over multiple lines is not really possible (without false positives).
This is a big show-stopper for me, and one of the few reasons why I still have to stick with TextWrangler for C++ editing.
Do you have any plans to do something about this?
Not short-term, no.