annotate runtime/syntax/netrc.vim @ 270:a20218704019

updated for version 7.0072
author vimboss
date Wed, 18 May 2005 22:17:12 +0000
parents 410fa1a31baf
children f14cbd913415
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
1 " Vim syntax file
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
2 " Maintainer: Nikolai Weibull <source@pcppopper.org>
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
3 " URL: http://www.pcppopper.org/
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
4 " Latest Revision: 2004-12-16
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
5 " arch-tag: 4f6ecb37-d10c-4eca-add0-77991559414a
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
6
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
7 if version < 600
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
8 syntax clear
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
9 elseif exists("b:current_syntax")
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
10 finish
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
11 endif
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
12
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
13 " Keywords
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
14 syn keyword netrcKeyword machine password nextgroup=netrcName skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
15 syn keyword netrcKeyword login nextgroup=netrcName,netrcSpecial skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
16 syn keyword netrcKeyword default
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
17 syn keyword netrcKeyword macdef nextgroup=netrcInit,netrcMacroName skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
18 syn region netrcMacro contained start='.' end='^$'
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
19
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
20 " Names
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
21 syn match netrcName contained display '\S\+'
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
22 syn match netrcName contained display '"[^\\"]*\(\\.[^\\"]*\)*'
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
23 syn match netrcMacroName contained display '\S\+' nextgroup=netrcMacro skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
24 syn match netrcMacroName contained display '"[^\\"]*\(\\.[^\\"]*\)*' nextgroup=netrcMacro skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
25
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
26 " Special
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
27 syn keyword netrcSpecial contained anonymous
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
28 syn match netrcInit contained '\<init$' nextgroup=netrcMacro skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
29
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
30 syn sync fromstart
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
31
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
32 " Define the default highlighting.
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
33 " For version 5.7 and earlier: only when not done already
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
34 " For version 5.8 and later: only when an item doesn't have highlighting yet
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
35 if version >= 508 || !exists("did_netrc_syn_inits")
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
36 if version < 508
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
37 let did_netrc_syn_inits = 1
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
38 command -nargs=+ HiLink hi link <args>
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
39 else
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
40 command -nargs=+ HiLink hi def link <args>
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
41 endif
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
42
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
43 HiLink netrcKeyword Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
44 HiLink netrcMacro PreProc
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
45 HiLink netrcName String
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
46 HiLink netrcMacroName String
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
47 HiLink netrcSpecial Special
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
48 HiLink netrcInit Special
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
49
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
50 delcommand HiLink
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
51 endif
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
52
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
53 let b:current_syntax = "netrc"
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
54
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
55 " vim: set sts=2 sw=2: