annotate runtime/syntax/exports.vim @ 204:a7547c77e563

updated for version 7.0060
author vimboss
date Tue, 15 Mar 2005 22:37:00 +0000
parents 3fc0f57ecb91
children a1059cda45f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: exports
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: Sep 02, 2003
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Version: 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Notes: This file includes both SysV and BSD 'isms
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " URL: http://www.erols.com/astronaut/vim/index.html#vimlinks_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Options: -word
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword exportsKeyOptions contained alldirs nohide ro wsync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword exportsKeyOptions contained kerb o rw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match exportsOptError contained "[a-z]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Settings: word=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword exportsKeySettings contained access anon root rw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match exportsSetError contained "[a-z]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " OptSet: -word=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword exportsKeyOptSet contained mapall maproot mask network
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match exportsOptSetError contained "[a-z]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " options and settings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match exportsSettings "[a-z]\+=" contains=exportsKeySettings,exportsSetError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match exportsOptions "-[a-z]\+" contains=exportsKeyOptions,exportsOptError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match exportsOptSet "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Separators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match exportsSeparator "[,:]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match exportsComment "^\s*#.*$" contains=@Spell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 if version >= 508 || !exists("did_exports_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 let did_exports_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink exportsKeyOptSet exportsKeySettings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink exportsOptSet exportsSettings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink exportsComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink exportsKeyOptions Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink exportsKeySettings Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink exportsOptions Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink exportsSeparator Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink exportsSettings Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink exportsOptError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink exportsOptSetError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink exportsSetError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 let b:current_syntax = "exports"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " vim: ts=10