Mercurial > vim
annotate runtime/syntax/cuplsim.vim @ 17815:9ec2526c04c5 v8.1.1904
patch 8.1.1904: cannot have an info popup align with the popup menu
Commit: https://github.com/vim/vim/commit/258cef59d8c53a5b1c04937c826dc133ad5710e2
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 21 17:29:29 2019 +0200
patch 8.1.1904: cannot have an info popup align with the popup menu
Problem: Cannot have an info popup align with the popup menu.
Solution: Add the "align" item to 'completepopup'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Aug 2019 17:30:03 +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 |