robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:62d8f3d: runtime: Revert several "mark invalid contact addresses" commits (#37192)ab20681c52

master
1.4 KiB49 linesraw
1" Vim syntax file
2" Language:	Good old CFG files
3" Maintainer:	Igor N. Prischepoff (igor@tyumbit.ru, pri_igor@mail.ru)
4" Last Change:	2012 Aug 11
5" 2024 Nov 14 by Vim project:  // only denotes a comment when starting a line (#16051)
6
7" quit when a syntax file was already loaded
8if exists ("b:current_syntax")
9    finish
10endif
11
12" case off
13syn case ignore
14syn keyword CfgOnOff  ON OFF YES NO TRUE FALSE  contained
15syn match UncPath "\\\\\p*" contained
16"Dos Drive:\Path
17syn match CfgDirectory "[a-zA-Z]:\\\p*" contained
18"Parameters
19syn match   CfgParams    ".\{0}="me=e-1 contains=CfgComment
20"... and their values (don't want to highlight '=' sign)
21syn match   CfgValues    "=.*"hs=s+1 contains=CfgDirectory,UncPath,CfgComment,CfgString,CfgOnOff
22
23" Sections
24syn match CfgSection	    "\[.*\]"
25syn match CfgSection	    "{.*}"
26
27" String
28syn match  CfgString	"\".*\"" contained
29syn match  CfgString    "'.*'"   contained
30
31" Comments (Everything before '#' or ';' or leading '//')
32syn match  CfgComment	"#.*"
33syn match  CfgComment	";.*"
34syn match  CfgComment	"^\s*\/\/.*"
35
36" Define the default highlighting.
37" Only when an item doesn't have highlighting yet
38hi def link CfgOnOff     Label
39hi def link CfgComment	 Comment
40hi def link CfgSection	 Type
41hi def link CfgString	 String
42hi def link CfgParams    Keyword
43hi def link CfgValues    Constant
44hi def link CfgDirectory Directory
45hi def link UncPath      Directory
46
47
48let b:current_syntax = "cfg"
49" vim:ts=8