annotate runtime/syntax/rpcgen.vim @ 915:d87865573d80 v7.0.041

updated for version 7.0-041
author vimboss
date Sun, 23 Jul 2006 20:12:24 +0000
parents a1059cda45f2
children b3bc99b909c3
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: rpcgen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
507
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
4 " Last Change: Sep 06, 2005
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
5 " Version: 8
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Read the C syntax to start with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 source <sfile>:p:h/c.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 runtime! syntax/c.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword rpcProgram program skipnl skipwhite nextgroup=rpcProgName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match rpcProgName contained "\<\i\I*\>" skipnl skipwhite nextgroup=rpcProgZone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn region rpcProgZone contained matchgroup=Delimiter start="{" matchgroup=Delimiter end="}\s*=\s*\(\d\+\|0x[23]\x\{7}\)\s*;"me=e-1 contains=rpcVersion,cComment,rpcProgNmbrErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword rpcVersion contained version skipnl skipwhite nextgroup=rpcVersName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match rpcVersName contained "\<\i\I*\>" skipnl skipwhite nextgroup=rpcVersZone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region rpcVersZone contained matchgroup=Delimiter start="{" matchgroup=Delimiter end="}\s*=\s*\d\+\s*;"me=e-1 contains=cType,cStructure,cStorageClass,rpcDecl,rpcProcNmbr,cComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword rpcDecl contained string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match rpcProcNmbr contained "=\s*\d\+;"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match rpcProgNmbrErr contained "=\s*0x[^23]\x*"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match rpcPassThru "^\s*%.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " 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
37 if version >= 508 || !exists("did_rpcgen_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 let did_rpcgen_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 HiLink rpcProgName rpcName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink rpcProgram rpcStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink rpcVersName rpcName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink rpcVersion rpcStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink rpcDecl cType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink rpcPassThru cComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink rpcName Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink rpcProcNmbr Delimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink rpcProgNmbrErr Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink rpcStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 let b:current_syntax = "rpcgen"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " vim: ts=8