Mercurial > vim
annotate runtime/syntax/cynlib.vim @ 31607:ff068ae8db41
Added tag v9.0.1135 for changeset 035b8dbb267c34612e772b95deb652265653cb60
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 02 Jan 2023 21:45:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Cynlib(C++) | |
3 " Maintainer: Phil Derrick <phild@forteds.com> | |
4 " Last change: 2001 Sep 02 | |
5 " URL http://www.derrickp.freeserve.co.uk/vim/syntax/cynlib.vim | |
6 " | |
7 " Language Information | |
8 " | |
9 " Cynlib is a library of C++ classes to allow hardware | |
10 " modelling in C++. Combined with a simulation kernel, | |
11 " the compiled and linked executable forms a hardware | |
12 " simulation of the described design. | |
13 " | |
14 " Further information can be found from www.forteds.com | |
15 | |
16 | |
17 " Remove any old syntax stuff hanging around | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
18 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
19 if exists("b:current_syntax") |
7 | 20 finish |
21 endif | |
22 | |
23 | |
24 | |
25 " Read the C++ syntax to start with - this includes the C syntax | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
26 runtime! syntax/cpp.vim |
7 | 27 unlet b:current_syntax |
28 | |
29 " Cynlib extensions | |
30 | |
31 syn keyword cynlibMacro Default CYNSCON | |
32 syn keyword cynlibMacro Case CaseX EndCaseX | |
33 syn keyword cynlibType CynData CynSignedData CynTime | |
34 syn keyword cynlibType In Out InST OutST | |
35 syn keyword cynlibType Struct | |
36 syn keyword cynlibType Int Uint Const | |
37 syn keyword cynlibType Long Ulong | |
38 syn keyword cynlibType OneHot | |
39 syn keyword cynlibType CynClock Cynclock0 | |
40 syn keyword cynlibFunction time configure my_name | |
41 syn keyword cynlibFunction CynModule epilog execute_on | |
42 syn keyword cynlibFunction my_name | |
43 syn keyword cynlibFunction CynBind bind | |
44 syn keyword cynlibFunction CynWait CynEvent | |
45 syn keyword cynlibFunction CynSetName | |
46 syn keyword cynlibFunction CynTick CynRun | |
47 syn keyword cynlibFunction CynFinish | |
48 syn keyword cynlibFunction Cynprintf CynSimTime | |
49 syn keyword cynlibFunction CynVcdFile | |
50 syn keyword cynlibFunction CynVcdAdd CynVcdRemove | |
51 syn keyword cynlibFunction CynVcdOn CynVcdOff | |
52 syn keyword cynlibFunction CynVcdScale | |
53 syn keyword cynlibFunction CynBgnName CynEndName | |
54 syn keyword cynlibFunction CynClock configure time | |
55 syn keyword cynlibFunction CynRedAnd CynRedNand | |
56 syn keyword cynlibFunction CynRedOr CynRedNor | |
57 syn keyword cynlibFunction CynRedXor CynRedXnor | |
58 syn keyword cynlibFunction CynVerify | |
59 | |
60 | |
61 syn match cynlibOperator "<<=" | |
62 syn keyword cynlibType In Out InST OutST Int Uint Const Cynclock | |
63 | |
64 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
65 " Only when an item doesn't have highlighting yet |
7 | 66 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
67 hi def link cynlibOperator Operator |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
68 hi def link cynlibMacro Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
69 hi def link cynlibFunction Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
70 hi def link cynlibppMacro Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
71 hi def link cynlibType Type |
7 | 72 |
73 | |
74 let b:current_syntax = "cynlib" |