ddnet/other/vim/syntax/ddnet-cfg.vim
bors[bot] 4f8ff9c115
Merge #6402
6402: Remove fatal space from vim syntax r=Chairn a=ChillerDragon

<!-- What is the motivation for the changes of this pull request? -->

<!-- Note that builds and other checks will be run for your change. Don't feel intimidated by failures in some of the checks. If you can't resolve them yourself, experienced devs can also resolve them before merging your pull request. -->

## Checklist

- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: ChillerDragon <ChillerDragon@gmail.com>
2023-03-09 19:14:55 +00:00

28 lines
638 B
VimL

" Vim syntax file
" Language: ddnet config files (https://github.com/ddnet/ddnet)
if exists("b:current_syntax")
finish
endif
syntax match settingName "^\w*"
syntax match comment "#.*"
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
hi def link comment Comment
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"