mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2025-12-16 06:27:07 +08:00
Recognize '_' and '.' characters in package names
Examples: - gevent_subprocess (https://pypi.python.org/pypi/gevent_subprocess) - zope.interface (https://pypi.python.org/pypi/zope.interface)
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
alabaster==0.7.6
|
alabaster==0.7.6
|
||||||
Babel==2.1.1
|
Babel==2.1.1
|
||||||
docutils==0.12
|
docutils==0.12
|
||||||
|
gevent_subprocess==0.1.2
|
||||||
Jinja2==2.8
|
Jinja2==2.8
|
||||||
MarkupSafe==0.23
|
MarkupSafe==0.23
|
||||||
Pygments==2.0.2
|
Pygments==2.0.2
|
||||||
@@ -14,6 +15,7 @@ six==1.10.0
|
|||||||
snowballstemmer==1.2.0
|
snowballstemmer==1.2.0
|
||||||
Sphinx==1.3.3
|
Sphinx==1.3.3
|
||||||
sphinx-rtd-theme==0.1.9
|
sphinx-rtd-theme==0.1.9
|
||||||
|
zope.interface==4.2.0
|
||||||
|
|
||||||
# VSC repositories
|
# VSC repositories
|
||||||
[-e] git+git://git.myproject.org/MyProject#egg=MyProject # Git
|
[-e] git+git://git.myproject.org/MyProject#egg=MyProject # Git
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ syn case match
|
|||||||
syn region requirementsComment start="[ \t]*#" end="$"
|
syn region requirementsComment start="[ \t]*#" end="$"
|
||||||
syn match requirementsCommandOption "\v^\[?--?[a-zA-Z\-]*\]?"
|
syn match requirementsCommandOption "\v^\[?--?[a-zA-Z\-]*\]?"
|
||||||
syn match requirementsVersionSpecifiers "\v(\=\=\=?|\<\=?|\>\=?|\~\=|\!\=)"
|
syn match requirementsVersionSpecifiers "\v(\=\=\=?|\<\=?|\>\=?|\~\=|\!\=)"
|
||||||
syn match requirementsPackageName "\v^[a-zA-Z][a-zA-Z\-0-9]*"
|
syn match requirementsPackageName "\v^[a-zA-Z][a-zA-Z\-_\.0-9]*"
|
||||||
syn match requirementsVersionControls "\v(git\+?|hg\+|svn\+|bzr\+)\S+"
|
syn match requirementsVersionControls "\v(git\+?|hg\+|svn\+|bzr\+)\S+"
|
||||||
|
|
||||||
hi link requirementsComment Comment
|
hi link requirementsComment Comment
|
||||||
|
|||||||
Reference in New Issue
Block a user