annotate runtime/syntax/cuplsim.vim @ 5560:4b92012f6b18 v7.4.128

updated for version 7.4.128 Problem: Perl 5.18 for MSVC doesn't work. Solution: Add check in makefile and define __inline. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Sat, 14 Dec 2013 11:50:35 +0100
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: CUPL simulation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: John Cook <john.cook@kla-tencor.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2001 Apr 25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Read the CUPL syntax to start with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 source <sfile>:p:h/cupl.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 runtime! syntax/cupl.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " omit definition-specific stuff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn clear cuplStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn clear cuplFunction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn clear cuplLogicalOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn clear cuplArithmeticOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn clear cuplAssignmentOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn clear cuplEqualityOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn clear cuplTruthTableOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn clear cuplExtension
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " simulation order statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match cuplsimOrder "order:" nextgroup=cuplsimOrderSpec skipempty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn region cuplsimOrderSpec start="." end=";"me=e-1 contains=cuplComment,cuplsimOrderFormat,cuplBitVector,cuplSpecialChar,cuplLogicalOperator,cuplCommaOperator contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " simulation base statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match cuplsimBase "base:" nextgroup=cuplsimBaseSpec skipempty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn region cuplsimBaseSpec start="." end=";"me=e-1 contains=cuplComment,cuplsimBaseType contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword cuplsimBaseType octal decimal hex contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " simulation vectors statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match cuplsimVectors "vectors:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " simulator format control
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match cuplsimOrderFormat "%\d\+\>" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " simulator control
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match cuplsimStimulus "[10ckpx]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match cuplsimStimulus +'\(\x\|x\)\+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match cuplsimOutput "[lhznx*]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match cuplsimOutput +"\x\+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn sync minlines=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " 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
58 if version >= 508 || !exists("did_cuplsim_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 let did_cuplsim_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " append to the highlighting links in cupl.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " The default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink cuplsimOrder cuplStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink cuplsimBase cuplStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink cuplsimBaseType cuplStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink cuplsimVectors cuplStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink cuplsimStimulus cuplNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink cuplsimOutput cuplNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink cuplsimOrderFormat cuplNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 let b:current_syntax = "cuplsim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 " vim:ts=8