[TxMt] C++ throw keyword in method declaration

Marc-Antoine Courteau macourteau at gmail.com
Sun Aug 26 22:55:16 UTC 2007


When writing C++ code in TextMate, it appears that the method names are not
well detected when I use the throw\([^\)]*\) keyword on my method
declarations, as in this example:

void Foo::Bar(int argument) const throw()
{
   /* ... */
}

or like this:

void Foo::Bar(int argument) const throw(std:exception, int)
{
   /* ... */
   throw std::exception("exception message");
   /* ... */
   throw 42;
   /* ... */
}

When I use the throw keyword on my method declarations, the method name
detected by TextMate is "throw", which isn't really useful, especially when
all the method names are detected as "throw". How can I fix this to ensure
TextMates resolves the proper names?

Thanks for your help,

Marc-Antoine Courteau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070826/26205cf7/attachment.html>


More information about the textmate mailing list