Skip to content

Commit 9fea6ca

Browse files
authored
Merge pull request #1181 from konstin/dependency-specifiers-grammar-fixes
Dependency specifiers grammar fixes
2 parents 81b2abb + 85240af commit 9fea6ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/specifications/dependency-specifiers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ URI is defined in :rfc:`std-66 <3986>`)::
7373
Environment markers allow making a specification only take effect in some
7474
environments::
7575

76-
marker_op = version_cmp | (wsp* 'in') | (wsp* 'not' wsp+ 'in')
76+
marker_op = version_cmp | (wsp+ 'in' wsp+) | (wsp+ 'not' wsp+ 'in' wsp+)
7777
python_str_c = (wsp | letter | digit | '(' | ')' | '.' | '{' | '}' |
7878
'-' | '_' | '*' | '#' | ':' | ';' | ',' | '/' | '?' |
7979
'[' | ']' | '!' | '~' | '`' | '@' | '$' | '%' | '^' |
@@ -116,7 +116,7 @@ Giving us a rule for name based requirements::
116116

117117
And a rule for direct reference specifications::
118118

119-
url_req = name wsp* extras? wsp* urlspec wsp+ quoted_marker?
119+
url_req = name wsp* extras? wsp* urlspec (wsp+ quoted_marker?)?
120120

121121
Leading to the unified rule that can specify a dependency.::
122122

0 commit comments

Comments
 (0)