annotate runtime/syntax/netrc.vim @ 9530:46426dc637f6

Added tag v7.4.2045 for changeset 581d5131629f3acbf9aec2c4dcb56aa7949e34b5
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Jul 2016 21:30:09 +0200
parents 7bc41231fbc7
children 1218c5353e2b
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
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
2 " Language: netrc(5) configuration file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 375
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
4 " Latest Revision: 2010-01-03
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
6 if exists("b:current_syntax")
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
7 finish
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
8 endif
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
11 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
12
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
13 syn keyword netrcKeyword machine nextgroup=netrcMachine skipwhite skipnl
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
14 syn keyword netrcKeyword account
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
15 \ login
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
16 \ nextgroup=netrcLogin,netrcSpecial skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
17 syn keyword netrcKeyword password nextgroup=netrcPassword skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
18 syn keyword netrcKeyword default
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
19 syn keyword netrcKeyword macdef
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
20 \ nextgroup=netrcInit,netrcMacroName skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
21 syn region netrcMacro contained start='.' end='^$'
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
22
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
23 syn match netrcMachine contained display '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
24 syn match netrcMachine contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
25 syn match netrcLogin contained display '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
26 syn match netrcLogin contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
27 syn match netrcPassword contained display '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
28 syn match netrcPassword contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
29 syn match netrcMacroName contained display '\S\+'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
30 \ nextgroup=netrcMacro skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
31 syn match netrcMacroName contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
32 \ nextgroup=netrcMacro skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
33
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
34 syn keyword netrcSpecial contained anonymous
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
35 syn match netrcInit contained '\<init$'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
36 \ nextgroup=netrcMacro skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
37
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
38 syn sync fromstart
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
39
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
40 hi def link netrcKeyword Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
41 hi def link netrcMacro PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
42 hi def link netrcMachine Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
43 hi def link netrcLogin String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
44 hi def link netrcPassword String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
45 hi def link netrcMacroName String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
46 hi def link netrcSpecial Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
47 hi def link netrcInit Special
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
48
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
49 let b:current_syntax = "netrc"
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
50
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
51 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
52 unlet s:cpo_save