2022-11-04 15:54:05 +00:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: ddnet config files (https://github.com/ddnet/ddnet)
|
|
|
|
|
|
|
|
if exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
syntax match settingName "^\w*"
|
|
|
|
|
2023-03-09 15:50:34 +00:00
|
|
|
syntax match comment "#.*"
|
2022-11-04 15:54:05 +00:00
|
|
|
syntax match value "\s\w*"
|
|
|
|
syntax match escapeQuote "\\\""
|
|
|
|
syntax match number "\s[0-9]\+"
|
|
|
|
syntax match ip "\s\d\+\.\d\+\.\d\+\.\d\+\(:\d\+\)\="
|
|
|
|
|
|
|
|
syntax region string start='"' end='"' contains=escapeQuote
|
|
|
|
|
|
|
|
hi def link settingName Identifier
|
|
|
|
|
2023-03-09 15:50:34 +00:00
|
|
|
hi def link comment Comment
|
2022-11-04 15:54:05 +00:00
|
|
|
hi def link value Constant
|
|
|
|
hi def link ip Constant
|
|
|
|
hi def link string String
|
|
|
|
hi def link number Number
|
|
|
|
hi def link escapeQuote SpecialChar
|
|
|
|
|
|
|
|
let b:current_syntax = "ddnet-cfg"
|