codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: netrc(5) configuration file3" Previous Maintainer: Nikolai Weibull <now@bitwi.se>4" Latest Revision: 2010-01-035" Last Change: 2023 Feb 27 by Keith Smiley6 7if exists("b:current_syntax")8 finish9endif10 11let s:cpo_save = &cpo12set cpo&vim13 14syn keyword netrcKeyword machine nextgroup=netrcMachine skipwhite skipnl15syn keyword netrcKeyword account16 \ login17 \ nextgroup=netrcLogin,netrcSpecial skipwhite skipnl18syn keyword netrcKeyword password nextgroup=netrcPassword skipwhite skipnl19syn keyword netrcKeyword default20syn keyword netrcKeyword macdef21 \ nextgroup=netrcInit,netrcMacroName skipwhite skipnl22syn 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 skipnl32syn match netrcMacroName contained display '"[^\\"]*\(\\.[^\\"]*\)*"'33 \ nextgroup=netrcMacro skipwhite skipnl34 35syn keyword netrcSpecial contained anonymous36syn match netrcInit contained '\<init$'37 \ nextgroup=netrcMacro skipwhite skipnl38 39syn match netrcComment '#.*$'40 41syn sync fromstart42 43hi def link netrcKeyword Keyword44hi def link netrcMacro PreProc45hi def link netrcMachine Identifier46hi def link netrcLogin String47hi def link netrcPassword String48hi def link netrcMacroName String49hi def link netrcSpecial Special50hi def link netrcInit Special51hi def link netrcComment Comment52 53let b:current_syntax = "netrc"54 55let &cpo = s:cpo_save56unlet s:cpo_save57 