Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
cfg.vim50 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	Good old CFG files3" Maintainer:	Igor N. Prischepoff (igor@tyumbit.ru, pri_igor@mail.ru)4" Last Change:	2012 Aug 115" 2024 Nov 14 by Vim project:  // only denotes a comment when starting a line (#16051)6 7" quit when a syntax file was already loaded8if exists ("b:current_syntax")9    finish10endif11 12" case off13syn case ignore14syn keyword CfgOnOff  ON OFF YES NO TRUE FALSE  contained15syn match UncPath "\\\\\p*" contained16"Dos Drive:\Path17syn match CfgDirectory "[a-zA-Z]:\\\p*" contained18"Parameters19syn match   CfgParams    ".\{0}="me=e-1 contains=CfgComment20"... and their values (don't want to highlight '=' sign)21syn match   CfgValues    "=.*"hs=s+1 contains=CfgDirectory,UncPath,CfgComment,CfgString,CfgOnOff22 23" Sections24syn match CfgSection	    "\[.*\]"25syn match CfgSection	    "{.*}"26 27" String28syn match  CfgString	"\".*\"" contained29syn match  CfgString    "'.*'"   contained30 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 yet38hi def link CfgOnOff     Label39hi def link CfgComment	 Comment40hi def link CfgSection	 Type41hi def link CfgString	 String42hi def link CfgParams    Keyword43hi def link CfgValues    Constant44hi def link CfgDirectory Directory45hi def link UncPath      Directory46 47 48let b:current_syntax = "cfg"49" vim:ts=850 
codekingpro/portable-devtools · Team Ai