30 lines
940 B
VimL
30 lines
940 B
VimL
" Vim syntax file
|
|
" Language: Session
|
|
" Maintainer: Arija A. <ari@ari.lt>
|
|
|
|
" Usage Instructions
|
|
" Put this file in ~/.vim/syntax/deployer.vim and
|
|
" then put deployer.ftp.vim to ~/.vim/ftdetect/deployer.ftp.vim
|
|
|
|
scriptencoding utf-8
|
|
|
|
if exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
runtime! syntax/sh.vim
|
|
|
|
syn region deployMetaBlock start=/^# -\{5,}$/ end=/^# -\{5,}$/
|
|
|
|
syn keyword deployCustomKeyword py3_venv py3_requirements py3_install py3_version prevsrc credentials_load daemon_trystop daemon_exec abs_path error info
|
|
|
|
syn keyword deployFunction prepare build test cleanup teardown deploy sysadmin
|
|
|
|
syn match deployUrl /\vhttps?:\/\/[^\s'"`()<>]+/ containedin=shCmd,shIf,shFor,shWhile,shCase,shString,shDString,shBString,shComment,shHereDoc,shSubShell
|
|
|
|
hi def link deployUrl String
|
|
hi def link deployMetaBlock PreProc
|
|
hi def link deployCustomKeyword Keyword
|
|
hi def link deployFunction Function
|
|
|
|
let b:current_syntax = "deployer"
|