summaryrefslogtreecommitdiffstats
path: root/vim/syntax
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2008-12-08 02:14:28 -0500
committerdoy <doy@tozt.net>2008-12-08 02:14:28 -0500
commit3988167ba7200dbe8681790a36a99e9d23e6661c (patch)
treec2ddd3e4bdb364ef09fb43a832c25b847350ab19 /vim/syntax
parent24372e31622211eb5bc93653e1e1ff2c3af07c6b (diff)
downloadconf-3988167ba7200dbe8681790a36a99e9d23e6661c.tar.gz
conf-3988167ba7200dbe8681790a36a99e9d23e6661c.zip
add syntax highlight files for taeb logs
Diffstat (limited to 'vim/syntax')
-rw-r--r--vim/syntax/taeb-log.vim37
1 files changed, 37 insertions, 0 deletions
diff --git a/vim/syntax/taeb-log.vim b/vim/syntax/taeb-log.vim
new file mode 100644
index 0000000..528581b
--- /dev/null
+++ b/vim/syntax/taeb-log.vim
@@ -0,0 +1,37 @@
+" Vim syntax file
+" Language: TAEB logfiles
+" Author: Jesse Luehrs <doy at tozt dot net>
+" Version: 20081207
+" Copyright: Copyright (c) 2008 Jesse Luehrs
+" Licence: You may redistribute this under the same terms as Vim itself
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syn keyword TAEBlevellow DEBUG INFO NOTICE
+ \ contained
+syn keyword TAEBlevelmid WARNING
+ \ contained
+syn keyword TAEBlevelhigh ERROR CRITICAL EMERGENCY
+ \ contained
+syn match TAEBinfo /^.\{-}\]/
+ \ contains=TAEBturn,TAEBtime,TAEBmsgtype
+syn match TAEBtime /.\{-}:/
+ \ display nextgroup=TAEBmsgtype skipwhite contained
+syn match TAEBturn /^<T\(-\|\d\+\)>/
+ \ display nextgroup=TAEBtime skipwhite contained
+syn match TAEBmsgtype /\[[^]]\{-}\]/
+ \ display contains=TAEBlevel.*,TAEBchannel contained
+syn match TAEBchannel /:\zs\w\+\ze\]/
+ \ display contained
+
+hi def link TAEBturn Keyword
+hi def link TAEBtime Comment
+hi def link TAEBlevellow Identifier
+hi def link TAEBlevelmid Todo
+hi def link TAEBlevelhigh Error
+hi def link TAEBchannel Special
+hi def link TAEBmsgtype Type
+
+let b:current_syntax = "taeb-log"