2 " Language: netrc(5) configuration file
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
4 " Latest Revision: 2010-01-03
6 if exists("b:current_syntax")
13 syn keyword netrcKeyword machine nextgroup=netrcMachine skipwhite skipnl
14 syn keyword netrcKeyword account
16 \ nextgroup=netrcLogin,netrcSpecial skipwhite skipnl
17 syn keyword netrcKeyword password nextgroup=netrcPassword skipwhite skipnl
18 syn keyword netrcKeyword default
19 syn keyword netrcKeyword macdef
20 \ nextgroup=netrcInit,netrcMacroName skipwhite skipnl
21 syn region netrcMacro contained start='.' end='^$'
23 syn match netrcMachine contained display '\S\+'
24 syn match netrcMachine contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
25 syn match netrcLogin contained display '\S\+'
26 syn match netrcLogin contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
27 syn match netrcPassword contained display '\S\+'
28 syn match netrcPassword contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
29 syn match netrcMacroName contained display '\S\+'
30 \ nextgroup=netrcMacro skipwhite skipnl
31 syn match netrcMacroName contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
32 \ nextgroup=netrcMacro skipwhite skipnl
34 syn keyword netrcSpecial contained anonymous
35 syn match netrcInit contained '\<init$'
36 \ nextgroup=netrcMacro skipwhite skipnl
40 hi def link netrcKeyword Keyword
41 hi def link netrcMacro PreProc
42 hi def link netrcMachine Identifier
43 hi def link netrcLogin String
44 hi def link netrcPassword String
45 hi def link netrcMacroName String
46 hi def link netrcSpecial Special
47 hi def link netrcInit Special
49 let b:current_syntax = "netrc"