-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfslog.vim
More file actions
executable file
·41 lines (35 loc) · 1.17 KB
/
fslog.vim
File metadata and controls
executable file
·41 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
" Vim syntax file
" Language: Freeewitch logs
" Author: Michael Ricordeau <michael.ricordeau@gmail.com>
" Licence: GPL (http://www.gnu.org)
" Remarks: Vim 6 or greater
if exists("b:current_syntax")
finish
endif
syn clear
syn sync fromstart
syn sync linebreaks=1
syn match fslogdebug /.* \[DEBUG\] .*/
syn match fslogdp /.* Dialplan: .*/
syn match fsloginfo /.* \[INFO\] .*/
syn match fslognotice /.* \[NOTICE\] .*/
syn match fslogwarn /.* \[WARNING\] .*/
syn match fslogwarn /.* \[WARN\] .*/
syn match fslogerror /.* \[ERROR\] .*/
syn match fslogerror /.* \[ERR\] .*/
syn match fslogerror /.* \[ALERT\] .*/
syn match fslog /^[aA-zZ].*/
highlight FSLogInfo ctermfg=green guifg=green
highlight FSLogDebug ctermfg=yellow guifg=yellow
highlight FSLogNotice ctermfg=cyan guifg=cyan
highlight FSLogWarn ctermfg=5 guifg=purple
highlight FSLogError ctermfg=red guifg=red
highlight link fslogdebug FSLogDebug
highlight link fslogdp FSLogDebug
highlight link fsloginfo FSLogInfo
highlight link fslognotice FSLogNotice
highlight link fslogwarn FSLogWarn
highlight link fslogerror FSLogError
highlight link fslog FSLogDebug
let b:current_syntax = "fslog"
" vim: wrap et sw=2 sts=2: