annotate runtime/syntax/cynlib.vim @ 28835:58d2315b096e v8.2.4941

patch 8.2.4941: '[ and '] marks may be wrong after undo Commit: https://github.com/vim/vim/commit/82444cefa3fef87624a078ea86a72af7ef4ef42e Author: LemonBoy <thatlemon@gmail.com> Date: Thu May 12 15:39:31 2022 +0100 patch 8.2.4941: '[ and '] marks may be wrong after undo Problem: '[ and '] marks may be wrong after undo. Solution: Adjust the '[ and '] marks if needed. (closes https://github.com/vim/vim/issues/10407, closes https://github.com/vim/vim/issues/1281)
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 May 2022 16:45:03 +0200
parents 46763b01cd9a
children
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
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 finish
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " Cynlib extensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword cynlibMacro Default CYNSCON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword cynlibMacro Case CaseX EndCaseX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword cynlibType CynData CynSignedData CynTime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword cynlibType In Out InST OutST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword cynlibType Struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword cynlibType Int Uint Const
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword cynlibType Long Ulong
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword cynlibType OneHot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword cynlibType CynClock Cynclock0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword cynlibFunction time configure my_name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword cynlibFunction CynModule epilog execute_on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword cynlibFunction my_name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword cynlibFunction CynBind bind
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword cynlibFunction CynWait CynEvent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword cynlibFunction CynSetName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword cynlibFunction CynTick CynRun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword cynlibFunction CynFinish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword cynlibFunction Cynprintf CynSimTime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword cynlibFunction CynVcdFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword cynlibFunction CynVcdAdd CynVcdRemove
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword cynlibFunction CynVcdOn CynVcdOff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword cynlibFunction CynVcdScale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword cynlibFunction CynBgnName CynEndName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword cynlibFunction CynClock configure time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword cynlibFunction CynRedAnd CynRedNand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword cynlibFunction CynRedOr CynRedNor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword cynlibFunction CynRedXor CynRedXnor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword cynlibFunction CynVerify
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match cynlibOperator "<<="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword cynlibType In Out InST OutST Int Uint Const Cynclock
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 let b:current_syntax = "cynlib"