robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
e3f36377c1
master
1" Vim syntax file 2" Language: netrc(5) configuration file 3" Previous Maintainer: Nikolai Weibull <now@bitwi.se> 4" Latest Revision: 2010-01-03 5" Last Change: 2023 Feb 27 by Keith Smiley 6 7if exists ( "b:current_syntax" ) 8finish 9endif 10 11let s: cpo_save = & cpo 12set cpo & vim 13 14syn keyword netrcKeyword machine nextgroup = netrcMachine skipwhite skipnl 15syn keyword netrcKeyword account 16 \login 17 \nextgroup = netrcLogin , netrcSpecial skipwhite skipnl 18syn keyword netrcKeyword password nextgroup = netrcPassword skipwhite skipnl 19syn keyword netrcKeyword default 20syn keyword netrcKeyword macdef 21 \nextgroup = netrcInit , netrcMacroName skipwhite skipnl 22syn region netrcMacro contained start = '. 'end = '^$ ' 23 24syn match netrcMachine contained display '\S\+ ' 25syn match netrcMachine contained display '" [ ^\\" ] * \(\\. [ ^\\" ] * \) * " ' 26syn match netrcLogin contained display '\S\+ ' 27syn match netrcLogin contained display '" [ ^\\" ] * \(\\. [ ^\\" ] * \) * " ' 28syn match netrcPassword contained display '\S\+ ' 29syn match netrcPassword contained display '" [ ^\\" ] * \(\\. [ ^\\" ] * \) * " ' 30syn match netrcMacroName contained display '\S\+ ' 31 \nextgroup = netrcMacro skipwhite skipnl 32syn match netrcMacroName contained display '" [ ^\\" ] * \(\\. [ ^\\" ] * \) * " ' 33 \nextgroup = netrcMacro skipwhite skipnl 34 35syn keyword netrcSpecial contained anonymous 36syn match netrcInit contained '\<init$ ' 37 \nextgroup = netrcMacro skipwhite skipnl 38 39syn match netrcComment '#. * $ ' 40 41syn sync fromstart 42 43hi def link netrcKeyword Keyword 44hi def link netrcMacro PreProc 45hi def link netrcMachine Identifier 46hi def link netrcLogin String 47hi def link netrcPassword String 48hi def link netrcMacroName String 49hi def link netrcSpecial Special 50hi def link netrcInit Special 51hi def link netrcComment Comment 52 53let b: current_syntax = "netrc" 54 55let & cpo = s: cpo_save 56unlet s: cpo_save