mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2025-12-06 10:04:23 +08:00
23 lines
692 B
VimL
23 lines
692 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 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:
|