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:
Jon Parise
2016-06-14 08:07:11 -07:00
parent f1412ceaac
commit 837b163e58
2 changed files with 3 additions and 1 deletions

View File

@@ -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