[SVN] Revision 959 (C)

Allan Odgaard allan at macromates.com
Wed May 18 22:19:12 UTC 2005


On May 19, 2005, at 0:08, Chris Thomas wrote:

> Because it has to handle other "pragma" lines as well, otherwise  
> the pragma might get eaten by the keyword.preprocessor rule, since  
> we don't control order of precedence (that I'm aware of).

TextMate will always pick the longest match, if there's a tie, the  
ordering in the plist decides.

> The conditional says: if this is "#pragma mark", the text following  
> it as "declaration.section", otherwise do nothing. It handles all  
> pragma preprocessor lines. (Looks like it's incorrectly  
> highlighting comments as preprocessor lines, however.)

Okay, I assume this can be done by something like:
    ^\\s*#(pragma)(\\s+(mark)\\s+(.*))?.*$

    1, 3 = directive
    4 = entity.name.section




More information about the textmate-dev mailing list