Merge pull request #10 from raimon49/match-urls-better

Match URLs better

Close #9
This commit is contained in:
raimon
2019-05-08 10:36:04 +09:00
committed by GitHub
5 changed files with 8 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
" the Requirements File Format syntax support for Vim
" Version: 1.5.0
" Version: 1.5.1
" Author: raimon <raimon49@hotmail.com>
" License: MIT LICENSE
" The MIT License (MIT)

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

@@ -1,5 +1,5 @@
" the Requirements File Format syntax support for Vim
" Version: 1.5.0
" Version: 1.5.1
" Author: raimon <raimon49@hotmail.com>
" License: MIT LICENSE
" The MIT License (MIT)

View File

@@ -1,5 +1,5 @@
" the Requirements File Format syntax support for Vim
" Version: 1.5.0
" Version: 1.5.1
" Author: raimon <raimon49@hotmail.com>
" License: MIT LICENSE
" The MIT License (MIT)

View File

@@ -1,5 +1,5 @@
" the Requirements File Format syntax support for Vim
" Version: 1.5.0
" Version: 1.5.1
" Author: raimon <raimon49@hotmail.com>
" License: MIT LICENSE
" The MIT License (MIT)
@@ -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