annotate runtime/syntax/cynpp.vim @ 9394:bea9958b35a9

Added tag v7.4.1978 for changeset c4aae9421aecc06c8cc51edfc26ef083a84e690b
author Christian Brabandt <cb@256bit.org>
date Fri, 01 Jul 2016 22:00:07 +0200
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: Cyn++
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 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Language Information
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Cynpp (Cyn++) is a macro language to ease coding in Cynlib.
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 " Cyn++ is designed to be HDL-like.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Further information can be found from www.forteds.com
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Remove any old syntax stuff hanging around
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Read the Cynlib syntax to start with - this includes the C++ syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 source <sfile>:p:h/cynlib.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 runtime! syntax/cynlib.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " Cyn++ extensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword cynppMacro Always EndAlways
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword cynppMacro Module EndModule
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword cynppMacro Initial EndInitial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword cynppMacro Posedge Negedge Changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword cynppMacro At
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword cynppMacro Thread EndThread
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword cynppMacro Instantiate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " 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
54 if version >= 508 || !exists("did_cynpp_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 let did_cynpp_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink cLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink cynppMacro Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 let b:current_syntax = "cynpp"