File: ddnet-cfg.vim

package info (click to toggle)
ddnet 19.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68,960 kB
  • sloc: cpp: 195,050; ansic: 58,572; python: 5,568; asm: 946; sh: 941; java: 366; xml: 206; makefile: 31
file content (27 lines) | stat: -rw-r--r-- 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
" 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"