[TxMt] Re: [Pascal Bundle] "Unit Test" For Pascal definitions vs prototypes

Ryan Wilcox ryanwilcox at mac.com
Mon Jul 16 14:40:42 UTC 2007

On 6/25/07, at 8:37 PM, Ryan Wilcox said:

>Hello all,
>I use the Pascal bundle quite a bit, and - while the Pascal bundle
>is MUCH better about understanding what a (to use the C term)
>prototype is vs a definition, it still fails when looking at
>functions (pascal methods that return a value).

I have a change for the Pascal Prototype regex. With this regex it passes all the tests in my previous email on this topic (<http://article.gmane.org/gmane.editors.textmate.general/20600>)

(I believe) The solution is simple:
add (: \w+)? to existing meta.function.prototype.pascal regex so it is:

\b(?i:(function|procedure))\b\s+(\w+(\.\w+)?)(\(.*?\))?(: \w+)?;\s*(?=(?i:attribute|forward|external))

If someone could check this out and commit this change (or one like it) to the Pascal bundle I'd be very grateful.

Thanks so much!,
_Ryan Wilcox

Wilcox Development Solutions:          <http://www.wilcoxd.com>
Toolsmiths for the Internet Age            PGP: 0x2F4E9C31

More information about the textmate mailing list