Mercurial > vim
annotate runtime/syntax/diva.vim @ 33767:4913b4f5a133 v9.0.2104
patch 9.0.2104: wast filetype should be replaced by wat filetype
Commit: https://github.com/vim/vim/commit/bc8f79d36a456054ed29f46585830af6d71f57c8
Author: rhysd <lin90162@yahoo.co.jp>
Date: Tue Nov 14 16:46:07 2023 +0100
patch 9.0.2104: wast filetype should be replaced by wat filetype
Problem: wast filetype should be replaced by wat filetype
Solution: start using the official wat filetype name
runtime: rename `wast` filetype to `wat` (Wasm text format)
The problem is the name of the current filetype wast. When the plugin
was initially created, the file extension for Wasm text format was not
fixed and .wast was more popular.
However, recently .wat became the official file extension for
WebAssembly text (WAT) format and .wast is now a file extension for the
unofficial WAST format, which is a superset of .wat for the convenience
to describe the Wasm specification conformance tests.
https://webassembly.js.org/docs/contrib-wat-vs-wast.html
However for now, let's keep using the `wat` filetype even for the .wast
extension, so that we at least do not lose the filetype settings and
syntax highlighting. This can be adjusted later, if it turns out to have
a separate need for.
closes: #13533
Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 14 Nov 2023 17:15:03 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: SKILL for Diva | |
3 " Maintainer: Toby Schaffer <jtschaff@eos.ncsu.edu> | |
4 " Last Change: 2001 May 09 | |
5 " Comments: SKILL is a Lisp-like programming language for use in EDA | |
6 " tools from Cadence Design Systems. It allows you to have | |
7 " a programming environment within the Cadence environment | |
8 " that gives you access to the complete tool set and design | |
9 " database. These items are for Diva verification rules decks. | |
10 | |
11 " Don't remove any old syntax stuff hanging around! We need stuff | |
12 " from skill.vim. | |
13 if !exists("did_skill_syntax_inits") | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
14 runtime! syntax/skill.vim |
7 | 15 endif |
16 | |
17 syn keyword divaDRCKeywords area enc notch ovlp sep width | |
18 syn keyword divaDRCKeywords app diffNet length lengtha lengthb | |
19 syn keyword divaDRCKeywords notParallel only_perp opposite parallel | |
20 syn keyword divaDRCKeywords sameNet shielded with_perp | |
21 syn keyword divaDRCKeywords edge edgea edgeb fig figa figb | |
22 syn keyword divaDRCKeywords normalGrow squareGrow message raw | |
23 syn keyword divaMeasKeywords perimeter length bends_all bends_full | |
24 syn keyword divaMeasKeywords bends_part corners_all corners_full | |
25 syn keyword divaMeasKeywords corners_part angles_all angles_full | |
26 syn keyword divaMeasKeywords angles_part fig_count butting coincident | |
27 syn keyword divaMeasKeywords over not_over outside inside enclosing | |
28 syn keyword divaMeasKeywords figure one_net two_net three_net grounded | |
29 syn keyword divaMeasKeywords polarized limit keep ignore | |
30 syn match divaCtrlFunctions "(ivIf\>"hs=s+1 | |
31 syn match divaCtrlFunctions "\<ivIf("he=e-1 | |
32 syn match divaCtrlFunctions "(switch\>"hs=s+1 | |
33 syn match divaCtrlFunctions "\<switch("he=e-1 | |
34 syn match divaCtrlFunctions "(and\>"hs=s+1 | |
35 syn match divaCtrlFunctions "\<and("he=e-1 | |
36 syn match divaCtrlFunctions "(or\>"hs=s+1 | |
37 syn match divaCtrlFunctions "\<or("he=e-1 | |
38 syn match divaCtrlFunctions "(null\>"hs=s+1 | |
39 syn match divaCtrlFunctions "\<null("he=e-1 | |
40 syn match divaExtFunctions "(save\(Interconnect\|Property\|Parameter\|Recognition\)\>"hs=s+1 | |
41 syn match divaExtFunctions "\<save\(Interconnect\|Property\|Parameter\|Recognition\)("he=e-1 | |
42 syn match divaExtFunctions "(\(save\|measure\|attach\|multiLevel\|calculate\)Parasitic\>"hs=s+1 | |
43 syn match divaExtFunctions "\<\(save\|measure\|attach\|multiLevel\|calculate\)Parasitic("he=e-1 | |
44 syn match divaExtFunctions "(\(calculate\|measure\)Parameter\>"hs=s+1 | |
45 syn match divaExtFunctions "\<\(calculate\|measure\)Parameter("he=e-1 | |
46 syn match divaExtFunctions "(measure\(Resistance\|Fringe\)\>"hs=s+1 | |
47 syn match divaExtFunctions "\<measure\(Resistance\|Fringe\)("he=e-1 | |
48 syn match divaExtFunctions "(extract\(Device\|MOS\)\>"hs=s+1 | |
49 syn match divaExtFunctions "\<extract\(Device\|MOS\)("he=e-1 | |
50 syn match divaDRCFunctions "(checkAllLayers\>"hs=s+1 | |
51 syn match divaDRCFunctions "\<checkAllLayers("he=e-1 | |
52 syn match divaDRCFunctions "(checkLayer\>"hs=s+1 | |
53 syn match divaDRCFunctions "\<checkLayer("he=e-1 | |
54 syn match divaDRCFunctions "(drc\>"hs=s+1 | |
55 syn match divaDRCFunctions "\<drc("he=e-1 | |
56 syn match divaDRCFunctions "(drcAntenna\>"hs=s+1 | |
57 syn match divaDRCFunctions "\<drcAntenna("he=e-1 | |
58 syn match divaFunctions "(\(drcExtract\|lvs\)Rules\>"hs=s+1 | |
59 syn match divaFunctions "\<\(drcExtract\|lvs\)Rules("he=e-1 | |
60 syn match divaLayerFunctions "(saveDerived\>"hs=s+1 | |
61 syn match divaLayerFunctions "\<saveDerived("he=e-1 | |
62 syn match divaLayerFunctions "(copyGraphics\>"hs=s+1 | |
63 syn match divaLayerFunctions "\<copyGraphics("he=e-1 | |
64 syn match divaChkFunctions "(dubiousData\>"hs=s+1 | |
65 syn match divaChkFunctions "\<dubiousData("he=e-1 | |
66 syn match divaChkFunctions "(offGrid\>"hs=s+1 | |
67 syn match divaChkFunctions "\<offGrid("he=e-1 | |
68 syn match divaLVSFunctions "(compareDeviceProperty\>"hs=s+1 | |
69 syn match divaLVSFunctions "\<compareDeviceProperty("he=e-1 | |
70 syn match divaLVSFunctions "(ignoreTerminal\>"hs=s+1 | |
71 syn match divaLVSFunctions "\<ignoreTerminal("he=e-1 | |
72 syn match divaLVSFunctions "(parameterMatchType\>"hs=s+1 | |
73 syn match divaLVSFunctions "\<parameterMatchType("he=e-1 | |
74 syn match divaLVSFunctions "(\(permute\|prune\|remove\)Device\>"hs=s+1 | |
75 syn match divaLVSFunctions "\<\(permute\|prune\|remove\)Device("he=e-1 | |
76 syn match divaGeomFunctions "(geom\u\a\+\(45\|90\)\=\>"hs=s+1 | |
77 syn match divaGeomFunctions "\<geom\u\a\+\(45\|90\)\=("he=e-1 | |
78 | |
79 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
80 " Only when an item doesn't have highlighting yet |
7 | 81 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
82 hi def link divaDRCKeywords Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
83 hi def link divaMeasKeywords Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
84 hi def link divaCtrlFunctions Conditional |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
85 hi def link divaExtFunctions Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
86 hi def link divaDRCFunctions Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
87 hi def link divaFunctions Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
88 hi def link divaLayerFunctions Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
89 hi def link divaChkFunctions Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
90 hi def link divaLVSFunctions Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
91 hi def link divaGeomFunctions Function |
7 | 92 |
93 | |
94 let b:current_syntax = "diva" | |
95 | |
96 " vim:ts=4 |