mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2025-12-06 10:04:23 +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:
@@ -12,7 +12,7 @@ syn case match
|
||||
syn region requirementsComment start="[ \t]*#" end="$"
|
||||
syn match requirementsCommandOption "\v^\[?--?[a-zA-Z\-]*\]?"
|
||||
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+"
|
||||
|
||||
hi link requirementsComment Comment
|
||||
|
||||
Reference in New Issue
Block a user