annotate runtime/syntax/cynlib.vim @ 2004:9e554211caf5 v7.2.301

updated for version 7.2-301
author vimboss
date Tue, 17 Nov 2009 16:41:01 +0000
parents 3fc0f57ecb91
children 43efa4f5a8ea
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: Cynlib(C++)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Phil Derrick <phild@forteds.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last change: 2001 Sep 02
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " URL http://www.derrickp.freeserve.co.uk/vim/syntax/cynlib.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Language Information
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Cynlib is a library of C++ classes to allow hardware
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " modelling in C++. Combined with a simulation kernel,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " the compiled and linked executable forms a hardware
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " simulation of the described design.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Further information can be found from www.forteds.com
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Remove any old syntax stuff hanging around
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Read the C++ syntax to start with - this includes the C syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 source <sfile>:p:h/cpp.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 runtime! syntax/cpp.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Cynlib extensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword cynlibMacro Default CYNSCON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword cynlibMacro Case CaseX EndCaseX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword cynlibType CynData CynSignedData CynTime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword cynlibType In Out InST OutST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword cynlibType Struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword cynlibType Int Uint Const
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword cynlibType Long Ulong
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword cynlibType OneHot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword cynlibType CynClock Cynclock0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword cynlibFunction time configure my_name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword cynlibFunction CynModule epilog execute_on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword cynlibFunction my_name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword cynlibFunction CynBind bind
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword cynlibFunction CynWait CynEvent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword cynlibFunction CynSetName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword cynlibFunction CynTick CynRun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword cynlibFunction CynFinish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword cynlibFunction Cynprintf CynSimTime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword cynlibFunction CynVcdFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword cynlibFunction CynVcdAdd CynVcdRemove
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword cynlibFunction CynVcdOn CynVcdOff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword cynlibFunction CynVcdScale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword cynlibFunction CynBgnName CynEndName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword cynlibFunction CynClock configure time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword cynlibFunction CynRedAnd CynRedNand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword cynlibFunction CynRedOr CynRedNor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword cynlibFunction CynRedXor CynRedXnor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword cynlibFunction CynVerify
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match cynlibOperator "<<="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword cynlibType In Out InST OutST Int Uint Const Cynclock
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " 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
74 if version >= 508 || !exists("did_cynlib_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 let did_cynlib_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink cynlibOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink cynlibMacro Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink cynlibFunction Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink cynlibppMacro Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink cynlibType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 let b:current_syntax = "cynlib"