goaccess.vim (1264B)
1 " Vim syntax file 2 " Language: GoAccess configuration 3 " Maintainer: Adam Monsen <haircut@gmail.com> 4 " Last Change: 2024 Aug 1 5 " Remark: see https://goaccess.io/man#configuration 6 " 7 " The GoAccess configuration file syntax is line-separated settings. Settings 8 " are space-separated key value pairs. Comments are any line starting with a 9 " hash mark. 10 " Example: https://github.com/allinurl/goaccess/blob/master/config/goaccess.conf 11 " 12 " This syntax definition supports todo/fixme highlighting in comments, and 13 " special (Keyword) highlighting if a setting's value is 'true' or 'false'. 14 " 15 " TODO: a value is required, so use extreme highlighting (e.g. bright red 16 " background) if a setting is missing a value. 17 18 if exists("b:current_syntax") 19 finish 20 endif 21 22 syn match goaccessSettingName '^[a-z-]\+' nextgroup=goaccessSettingValue 23 syn match goaccessSettingValue '\s\+.\+$' contains=goaccessKeyword 24 syn match goaccessComment "^#.*$" contains=goaccessTodo,@Spell 25 syn keyword goaccessTodo TODO FIXME contained 26 syn keyword goaccessKeyword true false contained 27 28 hi def link goaccessSettingName Type 29 hi def link goaccessSettingValue String 30 hi def link goaccessComment Comment 31 hi def link goaccessTodo Todo 32 hi def link goaccessKeyword Keyword 33 34 let b:current_syntax = "goaccess"