Add mlog syntax script for scripts/mlog

master
nirenjan 2014-12-24 17:21:42 -08:00
parent 6432cb0a86
commit 9615655eb7
1 changed files with 23 additions and 0 deletions

23
plugin/mlog.vim 100644
View File

@ -0,0 +1,23 @@
" File: mlog.vim
" Author: Nirenjan Krishnan
" Description: Syntax plugin for mlog script
" Last Modified: September 17, 2013
function MlogSyntax()
syntax match mlogStarDateHeader "^.\+ log, Stardate .\+$"
syntax match mlogSDSupplHeader "^.\+ log, supplemental$"
syntax match mlogStdHeader "^\[.\+\]$"
syntax match mlogSeparator "^-\+$"
"hi link mlogStarDateHeader Statement
"hi link mlogSDSupplHeader Type
hi link mlogStdHeader Comment
"hi link mlogSeparator String
hi mlogStarDateHeader ctermfg=2 term=bold cterm=bold
hi mlogSDSupplHeader ctermfg=3 term=bold cterm=bold
hi mlogSeparator ctermfg=10 term=underline cterm=underline
endfunction
autocmd BufReadPre $HOME/mlog/* :call MlogSyntax()