[SVN] Bundle commit 444
Kumar McMillan
kumar.mcmillan at gmail.com
Tue Mar 8 20:33:00 UTC 2005
On Tue, 8 Mar 2005 12:01:24 -0800, Eric Hsu <erichsu at math.sfsu.edu> wrote:
> At 7:04 PM +0100 3/8/05, Allan Odgaard wrote:
> >> * added support for PHP Heredoc strings
> >
> >So simple, why didn't you just do that Eric? ;)
>
> Apathy plus dimness are a very powerful combination.
>
> Very clever! This should work for 99% of the cases, although note
> that it breaks on any heredoc with an embedded word with a ending
> semicolon.
hehe, I just added it cuz I was sick of my broken heredocs :) ... but
yes it is a hack though. The real solution would be if "end" patterns
could reference a parenthesis match from "begin". Then it could be :
begin = "<<<([a-zA-Z]+[a-zA-Z0-9_]*)";
end = "^\1;$";
Allan, any thoughts on adding that?
>
> $str = <<<EOD
> Here are some of my favorite Languages:
> Perl;
> C++;
> C;
> and Scheme.
> EOD;
>
> I'll steal this for the Perl plist.
>
> best, Eric
> --
> Eric Hsu, Assistant Professor of Mathematics
> San Francisco State University
> erichsu at math.sfsu.edu
> http://math.sfsu.edu/hsu
> _______________________________________________
> textmate-dev mailing list
> textmate-dev at lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate-dev
>
More information about the textmate-dev
mailing list