Re: massive quotes? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: massive quotes?
Date
Msg-id 10663.1063375820@sss.pgh.pa.us
Whole thread Raw
In response to Re: massive quotes?  (Sean Chittenden <sean@chittenden.org>)
Responses Re: massive quotes?  (Sean Chittenden <sean@chittenden.org>)
List pgsql-hackers
Sean Chittenden <sean@chittenden.org> writes:
> ... then @autoconf me harder@ could be used as the start and ending
> token,

Hm, I should have read your message more carefully --- I missed the bit
at the middle where you propose nearly the same idea I had ;-).  But the
flex patterns you wrote don't actually support this do they?

> @(@[^\n]+\n|[^@]*@)
> %(%[^\n]+\n|[^%]*%)
> $($[^\n]+\n|[^$]*$)

Doesn't quite seem to do what we're talking about here.

I don't see a need for three of these; that just eats up lexical token
space.  Is there a reason for the $ variant not to be enough?  In any
case, @ and % are valid (and popular) operator names in Postgres, so we
could not use them for this purpose without removing that meaning, which
would be painful.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jon Jensen
Date:
Subject: Re: massive quotes?
Next
From: Andrew Dunstan
Date:
Subject: Re: massive quotes?