Support comments after environment markers

For example:

    package; python_version < '3'  # Comment

Previously, the environment marker syntax group matched to the end of
the line and didn't stop at the comment character (`#`).
This commit is contained in:
Jon Parise
2020-01-19 09:20:14 -08:00
parent a2be411fa6
commit 51446907b6
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ zope.interface==4.2.0
# Examples from PEP508
# c.f. https://www.python.org/dev/peps/pep-0508/
requests [security,tests] >= 2.8.1, == 2.8.* ; python_version < "2.7"
requests [security,tests] >= 2.8.1, == 2.8.* ; python_version < "2.7" # Comment
pip @ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686
name @ gopher:/foo/com"
foobar[quux]<2,>=3; os_name=='a'