Some small tweaks

This commit is contained in:
Gregory Schier
2023-02-28 17:25:59 -08:00
parent be7ef7beb1
commit aebfcb9437
8 changed files with 49 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
@top url { Protocol Host Path Query }
@top url { Protocol Host Port? Path Query }
Protocol {
ProtocolName Slashy
"http://" | "https://"
}
Path {
@@ -17,12 +17,11 @@ QueryPair {
}
@tokens {
ProtocolName { "http" | "https" }
Port { ":" $[0-9]+ }
Host { $[a-zA-Z0-9-_.]+ }
QueryName { $[a-zA-Z0-9-_.]+ }
QueryValue { $[a-zA-Z0-9-_.]+ }
QueryValue { $[a-zA-Z0-9-_./]+ }
PathSegment { $[a-zA-Z0-9-_.]+ }
Slashy { "://" }
Slash { "/" }
Question { "?" }
Equal { "=" }