1" Vim syntax file 2" Language: netrc(5) configuration file 3" Maintainer: Nikolai Weibull <[email protected]> 4" Latest Revision: 2006-04-19 5 6if exists("b:current_syntax") 7 finish 8endif 9 10let s:cpo_save = &cpo 11set cpo&vim 12 13syn keyword netrcKeyword machine nextgroup=netrcMachine skipwhite skipnl 14syn keyword netrcKeyword login nextgroup=netrcLogin,netrcSpecial 15 \ skipwhite skipnl 16syn keyword netrcKeyword password nextgroup=netrcPassword skipwhite skipnl 17syn keyword netrcKeyword default 18syn keyword netrcKeyword macdef nextgroup=netrcInit,netrcMacroName 19 \ skipwhite skipnl 20syn region netrcMacro contained start='.' end='^$' 21 22syn match netrcMachine contained display '\S\+' 23syn match netrcMachine contained display '"[^\\"]*\(\\.[^\\"]*\)*"' 24syn match netrcLogin contained display '\S\+' 25syn match netrcLogin contained display '"[^\\"]*\(\\.[^\\"]*\)*"' 26syn match netrcPassword contained display '\S\+' 27syn match netrcPassword contained display '"[^\\"]*\(\\.[^\\"]*\)*"' 28syn match netrcMacroName contained display '\S\+' nextgroup=netrcMacro 29 \ skipwhite skipnl 30syn match netrcMacroName contained display '"[^\\"]*\(\\.[^\\"]*\)*"' 31 \ nextgroup=netrcMacro skipwhite skipnl 32 33syn keyword netrcSpecial contained anonymous 34syn match netrcInit contained '\<init$' nextgroup=netrcMacro 35 \ skipwhite skipnl 36 37syn sync fromstart 38 39hi def link netrcKeyword Keyword 40hi def link netrcMacro PreProc 41hi def link netrcMachine Identifier 42hi def link netrcLogin String 43hi def link netrcPassword String 44hi def link netrcMacroName String 45hi def link netrcSpecial Special 46hi def link netrcInit Special 47 48let b:current_syntax = "netrc" 49 50let &cpo = s:cpo_save 51unlet s:cpo_save 52