[SVN] r6440 (C)

Chris Thomas chris at cjack.com
Thu Jan 11 15:31:08 UTC 2007

Two changes to the meta.preprocessor.macro.c parsing:

• Made macro arguments optional to correctly match basic macros, e.g:

    #define SPINAL_TAP_VOLUME 11

• Permitted a trailing ellipsis to match macros with varargs, e.g:

    #define ERR_IF(condition, function, format, args...)   \
    if (condition)                                         \
    {                                                      \
        fprintf(stderr, "%s:%d in %s(): " format,          \
                __FILE__, __LINE__, __FUNCTION__, ##args); \
        perror(" with " #function "() failed");            \

(patch from Sam Vaughan)

U   trunk/Bundles/C.tmbundle/Syntaxes/C.plist

More information about the textmate-dev mailing list