On 8/18/06, Rob Church <robchur(a)gmail.com> wrote:
On 17/08/06, Steve Bennett <stevage(a)gmail.com>
wrote:
Other
places require fixed, but large, amounts of lookahead... freelinks
require at least 9 characters, for example. Technically, I'll admit that a
What's a freelink?
I think he's referring to the parser's behaviour of replacing anything
that looks like a valid UR[IL] when the protocol is in a specific
configuration array.
You mean, when the characters that immediately precede "://" are in
some defined list like "ftp", "http" etc? Ok, from a quick test, I
see
that we recognise http, ftp, https, gopher, and mailto, but not vrml
or unsurprisingly file.
And presumably the 9 characters is counting the case
https://a
Btw, anyone want another funny corner case (as I gather these things
are called?)
http:// <- not recognised as a "magic word"
http://. <- recognised as a "magic word", but only the
"http://"
is linked - the . isn't.
Heh. Are we going to put that in the formal grammar?
Steve
Steve