" Vim syntax file
" Laungage:     FLEXlm Log file
" Last Change:  2012-11-15

if exists("b:current_syntax")
  finish
endif

syn match   flexlmHour     '^[ 0-9]\d:\d\d:\d\d'
syn match   flexlmdate     'TIMESTAMP \d\+/\d\+/\d\d\d\d'
syn match   flexlmDaemon   '([^ ][a-zA-Z]\+)'
syn match   flexlmStatus   '\(IN\|OUT\):'
syn region  flexlmFeature  start=+"+ skip=+\\"+ end=+"+
syn match   flexlmUserHost '[^@")]*@[^ ]*\s'
syn match   flexlmCount    '(\d* licenses)'
syn match   flexlmError    '\(ERROR\|DENIED\|UNSUPPORTED\|EXPIRED\):'
syn match   flexlmErrMsg   '(License.*)$'

hi def link flexlmHour     Type
hi def link flexlmDate     Type
hi def link flexlmDaemon   Comment
hi def link flexlmStatus   Identifier
hi def link flexlmFeature  Constant
hi def link flexlmUserHost Operator
hi def link flexlmCount    PreProc
hi def link flexlmError    Todo
hi def link flexlmErrMsg   ErrorMsg

let b:current_syntax = "flexlm"