From 2d80cc8d7d99167f204efb348a99fa16782e48a8 Mon Sep 17 00:00:00 2001 From: sify21 Date: Wed, 22 Mar 2023 14:00:07 +0800 Subject: [PATCH] Update pep-0508.txt fix mistakes in the parsley grammar --- pep-0508.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-0508.txt b/pep-0508.txt index 71f4648194e..849bf49ba04 100644 --- a/pep-0508.txt +++ b/pep-0508.txt @@ -453,10 +453,10 @@ The complete parsley grammar:: pchar = unreserved | pct_encoded | sub_delims | ':' | '@' query = ( pchar | '/' | '?')* fragment = ( pchar | '/' | '?')* - pct_encoded = '%' hexdig + pct_encoded = '%' hexdig{2} unreserved = letter | digit | '-' | '.' | '_' | '~' reserved = gen_delims | sub_delims - gen_delims = ':' | '/' | '?' | '#' | '(' | ')?' | '@' + gen_delims = ':' | '/' | '?' | '#' | '[' | ']' | '@' sub_delims = '!' | '$' | '&' | '\\'' | '(' | ')' | '*' | '+' | ',' | ';' | '=' hexdig = digit | 'a' | 'A' | 'b' | 'B' | 'c' | 'C' | 'd' | 'D' | 'e' | 'E' | 'f' | 'F'