mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2026-01-31 04:15:21 +08:00
Merge pull request #10 from raimon49/match-urls-better
Match URLs better Close #9
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user