robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
e7f8349a2e
master
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 18if exists ( "b:current_syntax" ) 19finish 20endif 21 22syn match goaccessSettingName '^ [ a-z- ] \+ 'nextgroup = goaccessSettingValue 23syn match goaccessSettingValue '\s\+.\+$ 'contains = goaccessKeyword 24syn match goaccessComment "^#. * $ "contains = goaccessTodo , @Spell 25syn keyword goaccessTodo TODO FIXME contained 26syn keyword goaccessKeyword true false contained 27 28hi def link goaccessSettingName Type 29hi def link goaccessSettingValue String 30hi def link goaccessComment Comment 31hi def link goaccessTodo Todo 32hi def link goaccessKeyword Keyword 33 34let b: current_syntax = "goaccess"