mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2026-01-17 21:15:02 +08:00
25 lines
708 B
VimL
25 lines
708 B
VimL
" the Requirements File Format syntax support for Vim
|
|
" Version: 0.1
|
|
" Author: raimon <raimon49@hotmail.com>
|
|
" License: MIT LICENSE
|
|
|
|
if exists("b:current_syntax") && b:current_syntax == "requirements"
|
|
finish
|
|
endif
|
|
|
|
syn case match
|
|
|
|
syn match requirementsComment "#.*$"
|
|
syn match requirementsCommandOption "\v^\[?--?[a-zA-Z\-]*\]?"
|
|
syn match requirementsVersionSpecifiers "\v(\=\=\=?|\<\=?|\>\=?|\~\=|\!\=)"
|
|
syn match requirementsPackageName "\v^[a-zA-Z][a-zA-Z\-0-9]*"
|
|
|
|
hi link requirementsComment Comment
|
|
hi link requirementsCommandOption Special
|
|
hi link requirementsVersionspecifiers Boolean
|
|
hi link requirementsPackageName Identifier
|
|
|
|
let b:current_syntax = "requirements"
|
|
|
|
" vim: et sw=4 ts=4 sts=4:
|