Match URLs better and add examples #9

This commit is contained in:
raimon
2019-05-08 10:29:17 +09:00
parent e346eca95e
commit 48996d1e52
2 changed files with 4 additions and 1 deletions

View File

@@ -32,3 +32,6 @@ foobar[quux]<2,>=3; os_name=='a'
-e svn+http://svn.myproject.org/svn/MyProject/trunk@2019#egg=MyProject # Subversion
-e bzr+ssh://user@myproject.org/MyProject/trunk#egg=MyProject # Bazaar
-e bzr+https://bzr.myproject.org/MyProject/trunk@2019#egg=MyProject
django==2.2
https://github.com/pallets/click/archive/7.0.zip

View File

@@ -36,7 +36,7 @@ syn match requirementsVersionSpecifiers "\v(\=\=\=?|\<\=?|\>\=?|\~\=|\!\=)"
syn match requirementsPackageName "\v^([a-zA-Z0-9][a-zA-Z0-9\-_\.]*[a-zA-Z0-9])"
syn match requirementsExtras "\v\[\S+\]"
syn match requirementsVersionControls "\v(git\+?|hg\+|svn\+|bzr\+)\S+"
syn match requirementsURLs "\v\@\s\S+"
syn match requirementsURLs "\v(\@\s)?(https?|ftp|gopher)://?[^\s/$.?#].\S*"
syn match requirementsEnvironmentMarkers "\v;\s.+$"
hi link requirementsComment Comment