[TxMt] Re: C++ parser problem?
Chris Thomas
chris at cjack.com
Sun Feb 5 05:28:34 UTC 2006
On Feb 4, 2006, at 11:33 PM, Kent Sibilev wrote:
> I've found the same problem. I think that 'begin' pattern of the
> declaration.function.c scope has a too much restrictive look
> ahead pattern.
>
> --- Bundles/C.tmbundle/Syntaxes/C.plist (revision 2670)
> +++ Bundles/C.tmbundle/Syntaxes/C.plist (working copy)
> @@ -294,9 +294,7 @@
> )
> )
> ([A-Za-z_][A-Za-z0-9_:]+) # actual name
> - \s*\( (?=[^)]*\) # match "(" and use look-ahead for
> ")"
> - (\s+const)?\s* # optional const modifier
> - (\{|\n)) # start bracket or end-of-line
> + \s*\(
> </string>
> <key>beginCaptures</key>
> <dict>
In addition to function declarations, many function calls would be
caught by that modification.
Chris
More information about the textmate
mailing list