From a5f0be6513936dfcb18c5719decaf06cd87f9765 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 26 Nov 2020 10:16:49 -0500 Subject: [PATCH] Oops these have schemes most of the time except tcp is implied if the scheme is missing Is this grammar ambiguous? I don't know but I think so. --- docs/specifications/url.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/specifications/url.rst b/docs/specifications/url.rst index e6e905bab..32e755bed 100644 --- a/docs/specifications/url.rst +++ b/docs/specifications/url.rst @@ -59,7 +59,13 @@ The EBNF for a NURL is as follows:: hash = unreserved net-loc-list = net-loc, [ { ",", net-loc } ] - net-loc = hostname, [ ":" port ] + net-loc = tcp-loc | tor-loc | i2p-loc + + tcp-loc = [ "tcp:" ], hostname, [ ":" port ] + tor-loc = "tor:", hostname, [ ":" port ] + i2p-loc = "i2p:", i2p-addr, [ ":" port ] + + i2p-addr = { unreserved }, ".i2p" hostname = domain | IPv4address | IPv6address swiss-number = segment