codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: GoAccess configuration3" Maintainer: Adam Monsen <haircut@gmail.com>4" Last Change: 2024 Aug 15" Remark: see https://goaccess.io/man#configuration6"7" The GoAccess configuration file syntax is line-separated settings. Settings8" are space-separated key value pairs. Comments are any line starting with a9" hash mark.10" Example: https://github.com/allinurl/goaccess/blob/master/config/goaccess.conf11"12" This syntax definition supports todo/fixme highlighting in comments, and13" 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 red16" background) if a setting is missing a value.17 18if exists("b:current_syntax")19 finish20endif21 22syn match goaccessSettingName '^[a-z-]\+' nextgroup=goaccessSettingValue23syn match goaccessSettingValue '\s\+.\+$' contains=goaccessKeyword24syn match goaccessComment "^#.*$" contains=goaccessTodo,@Spell25syn keyword goaccessTodo TODO FIXME contained26syn keyword goaccessKeyword true false contained27 28hi def link goaccessSettingName Type29hi def link goaccessSettingValue String30hi def link goaccessComment Comment31hi def link goaccessTodo Todo32hi def link goaccessKeyword Keyword33 34let b:current_syntax = "goaccess"35 