Mercurial > vim
annotate runtime/syntax/cuplsim.vim @ 33178:1e649fd371cd v9.0.1869
patch 9.0.1869: Coverity warns about unitialized var
Commit: https://github.com/vim/vim/commit/86eda0780590ea8cac49e2aa3bd50245329d3579
Author: Ernie Rael <errael@raelity.com>
Date: Tue Sep 5 07:33:48 2023 +0200
patch 9.0.1869: Coverity warns about unitialized var
Problem: Coverity warns about unitialized var
Solution: initialize it
closes: #13029
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 05 Sep 2023 07:45:04 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: CUPL simulation | |
3 " Maintainer: John Cook <john.cook@kla-tencor.com> | |
4 " Last Change: 2001 Apr 25 | |
5 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
6 " 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
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
11 " Read the CUPL syntax to start with | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
12 runtime! syntax/cupl.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
13 unlet b:current_syntax |
7 | 14 |
15 " omit definition-specific stuff | |
16 syn clear cuplStatement | |
17 syn clear cuplFunction | |
18 syn clear cuplLogicalOperator | |
19 syn clear cuplArithmeticOperator | |
20 syn clear cuplAssignmentOperator | |
21 syn clear cuplEqualityOperator | |
22 syn clear cuplTruthTableOperator | |
23 syn clear cuplExtension | |
24 | |
25 " simulation order statement | |
26 syn match cuplsimOrder "order:" nextgroup=cuplsimOrderSpec skipempty | |
27 syn region cuplsimOrderSpec start="." end=";"me=e-1 contains=cuplComment,cuplsimOrderFormat,cuplBitVector,cuplSpecialChar,cuplLogicalOperator,cuplCommaOperator contained | |
28 | |
29 " simulation base statement | |
30 syn match cuplsimBase "base:" nextgroup=cuplsimBaseSpec skipempty | |
31 syn region cuplsimBaseSpec start="." end=";"me=e-1 contains=cuplComment,cuplsimBaseType contained | |
32 syn keyword cuplsimBaseType octal decimal hex contained | |
33 | |
34 " simulation vectors statement | |
35 syn match cuplsimVectors "vectors:" | |
36 | |
37 " simulator format control | |
38 syn match cuplsimOrderFormat "%\d\+\>" contained | |
39 | |
40 " simulator control | |
41 syn match cuplsimStimulus "[10ckpx]\+" | |
42 syn match cuplsimStimulus +'\(\x\|x\)\+'+ | |
43 syn match cuplsimOutput "[lhznx*]\+" | |
44 syn match cuplsimOutput +"\x\+"+ | |
45 | |
46 syn sync minlines=1 | |
47 | |
48 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
49 " Only when an item doesn't have highlighting yet |
7 | 50 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
51 " append to the highlighting links in cupl.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
52 " The default highlighting. |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
53 hi def link cuplsimOrder cuplStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
54 hi def link cuplsimBase cuplStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
55 hi def link cuplsimBaseType cuplStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
56 hi def link cuplsimVectors cuplStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
57 hi def link cuplsimStimulus cuplNumber |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
58 hi def link cuplsimOutput cuplNumber |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
59 hi def link cuplsimOrderFormat cuplNumber |
7 | 60 |
61 | |
62 let b:current_syntax = "cuplsim" | |
63 " vim:ts=8 |