annotate runtime/syntax/diva.vim @ 4663:bce2051173f0 v7.3.1079

updated for version 7.3.1079 Problem: Test 87 fails. Solution: Fix the test for Python 3.3. (ZyX) Make it pass on 32 bit systems.
author Bram Moolenaar <bram@vim.org>
date Fri, 31 May 2013 18:46:11 +0200
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: SKILL for Diva
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Toby Schaffer <jtschaff@eos.ncsu.edu>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2001 May 09
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Comments: SKILL is a Lisp-like programming language for use in EDA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " tools from Cadence Design Systems. It allows you to have
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " a programming environment within the Cadence environment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " that gives you access to the complete tool set and design
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " database. These items are for Diva verification rules decks.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Don't remove any old syntax stuff hanging around! We need stuff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " from skill.vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 if !exists("did_skill_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 so <sfile>:p:h/skill.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 runtime! syntax/skill.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword divaDRCKeywords area enc notch ovlp sep width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword divaDRCKeywords app diffNet length lengtha lengthb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword divaDRCKeywords notParallel only_perp opposite parallel
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword divaDRCKeywords sameNet shielded with_perp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword divaDRCKeywords edge edgea edgeb fig figa figb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword divaDRCKeywords normalGrow squareGrow message raw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword divaMeasKeywords perimeter length bends_all bends_full
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword divaMeasKeywords bends_part corners_all corners_full
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword divaMeasKeywords corners_part angles_all angles_full
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword divaMeasKeywords angles_part fig_count butting coincident
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword divaMeasKeywords over not_over outside inside enclosing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword divaMeasKeywords figure one_net two_net three_net grounded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword divaMeasKeywords polarized limit keep ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match divaCtrlFunctions "(ivIf\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match divaCtrlFunctions "\<ivIf("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match divaCtrlFunctions "(switch\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match divaCtrlFunctions "\<switch("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match divaCtrlFunctions "(and\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match divaCtrlFunctions "\<and("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match divaCtrlFunctions "(or\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match divaCtrlFunctions "\<or("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match divaCtrlFunctions "(null\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match divaCtrlFunctions "\<null("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match divaExtFunctions "(save\(Interconnect\|Property\|Parameter\|Recognition\)\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match divaExtFunctions "\<save\(Interconnect\|Property\|Parameter\|Recognition\)("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match divaExtFunctions "(\(save\|measure\|attach\|multiLevel\|calculate\)Parasitic\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match divaExtFunctions "\<\(save\|measure\|attach\|multiLevel\|calculate\)Parasitic("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match divaExtFunctions "(\(calculate\|measure\)Parameter\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match divaExtFunctions "\<\(calculate\|measure\)Parameter("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match divaExtFunctions "(measure\(Resistance\|Fringe\)\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match divaExtFunctions "\<measure\(Resistance\|Fringe\)("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match divaExtFunctions "(extract\(Device\|MOS\)\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match divaExtFunctions "\<extract\(Device\|MOS\)("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match divaDRCFunctions "(checkAllLayers\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match divaDRCFunctions "\<checkAllLayers("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match divaDRCFunctions "(checkLayer\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match divaDRCFunctions "\<checkLayer("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match divaDRCFunctions "(drc\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match divaDRCFunctions "\<drc("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match divaDRCFunctions "(drcAntenna\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match divaDRCFunctions "\<drcAntenna("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match divaFunctions "(\(drcExtract\|lvs\)Rules\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match divaFunctions "\<\(drcExtract\|lvs\)Rules("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match divaLayerFunctions "(saveDerived\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match divaLayerFunctions "\<saveDerived("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match divaLayerFunctions "(copyGraphics\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match divaLayerFunctions "\<copyGraphics("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match divaChkFunctions "(dubiousData\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match divaChkFunctions "\<dubiousData("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match divaChkFunctions "(offGrid\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match divaChkFunctions "\<offGrid("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn match divaLVSFunctions "(compareDeviceProperty\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn match divaLVSFunctions "\<compareDeviceProperty("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn match divaLVSFunctions "(ignoreTerminal\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match divaLVSFunctions "\<ignoreTerminal("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn match divaLVSFunctions "(parameterMatchType\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match divaLVSFunctions "\<parameterMatchType("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match divaLVSFunctions "(\(permute\|prune\|remove\)Device\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn match divaLVSFunctions "\<\(permute\|prune\|remove\)Device("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn match divaGeomFunctions "(geom\u\a\+\(45\|90\)\=\>"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn match divaGeomFunctions "\<geom\u\a\+\(45\|90\)\=("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 " 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
86 if version >= 508 || !exists("did_diva_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 let did_diva_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 HiLink divaDRCKeywords Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 HiLink divaMeasKeywords Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 HiLink divaCtrlFunctions Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 HiLink divaExtFunctions Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 HiLink divaDRCFunctions Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 HiLink divaFunctions Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 HiLink divaLayerFunctions Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 HiLink divaChkFunctions Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 HiLink divaLVSFunctions Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 HiLink divaGeomFunctions Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 let b:current_syntax = "diva"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 " vim:ts=4