annotate runtime/syntax/hercules.vim @ 49:000769ce6c9d default tip

Added tag v7-3-618 for changeset 67300faee616
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 01 Aug 2012 18:08:37 +0900
parents 76efa0be13f1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim syntax file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 " Language: Hercules
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Maintainer: Dana Edwards <Dana_Edwards@avanticorp.com>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " Extensions: *.vc,*.ev,*.rs
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5 " Last change: Nov. 9, 2001
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 " Comment: Hercules physical IC design verification software ensures
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 " that an IC's physical design matches its logical design and
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 " satisfies manufacturing rules.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 " For version 5.x: Clear all syntax items
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 " For version 6.x: Quit when a syntax file was already loaded
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 if version < 600
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 syntax clear
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 elseif exists("b:current_syntax")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 " Ignore case
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 syn case ignore
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 " Hercules runset sections
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 syn keyword herculesType header assign_property alias assign
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23 syn keyword herculesType options preprocess_options
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 syn keyword herculesType explode_options technology_options
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 syn keyword herculesType drc_options database_options
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26 syn keyword herculesType text_options lpe_options evaccess_options
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 syn keyword herculesType check_point compare_group environment
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 syn keyword herculesType grid_check include layer_stats load_group
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29 syn keyword herculesType restart run_only self_intersect set snap
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30 syn keyword herculesType system variable waiver
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32 " Hercules commands
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
33 syn keyword herculesStatement attach_property boolean cell_extent
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
34 syn keyword herculesStatement common_hierarchy connection_points
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35 syn keyword herculesStatement copy data_filter alternate delete
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
36 syn keyword herculesStatement explode explode_all fill_pattern find_net
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
37 syn keyword herculesStatement flatten
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38 syn keyword herculesStatement level negate polygon_features push
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
39 syn keyword herculesStatement rectangles relocate remove_overlap reverse select
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
40 syn keyword herculesStatement select_cell select_contains select_edge select_net size
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
41 syn keyword herculesStatement text_polygon text_property vertex area cut
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
42 syn keyword herculesStatement density enclose external inside_edge
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
43 syn keyword herculesStatement internal notch vectorize center_to_center
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
44 syn keyword herculesStatement length mask_align moscheck rescheck
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
45 syn keyword herculesStatement analysis buildsub init_lpe_db capacitor
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
46 syn keyword herculesStatement device gendev nmos pmos diode npn pnp
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
47 syn keyword herculesStatement resistor set_param save_property
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
48 syn keyword herculesStatement connect disconnect text text_boolean
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
49 syn keyword herculesStatement replace_text create_ports label graphics
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
50 syn keyword herculesStatement save_netlist_database lpe_stats netlist
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
51 syn keyword herculesStatement spice graphics_property graphics_netlist
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
52 syn keyword herculesStatement write_milkyway multi_rule_enclose
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
53 syn keyword herculesStatement if error_property equate compare
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
54 syn keyword herculesStatement antenna_fix c_thru dev_connect_check
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
55 syn keyword herculesStatement dev_net_count device_count net_filter
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
56 syn keyword herculesStatement net_path_check ratio process_text_opens
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
57
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
58 " Hercules keywords
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
59 syn keyword herculesStatement black_box_file block compare_dir equivalence
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
60 syn keyword herculesStatement format gdsin_dir group_dir group_dir_usage
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
61 syn keyword herculesStatement inlib layout_path outlib output_format
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
62 syn keyword herculesStatement output_layout_path schematic schematic_format
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
63 syn keyword herculesStatement scheme_file output_block else
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
64 syn keyword herculesStatement and or not xor andoverlap inside outside by to
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
65 syn keyword herculesStatement with connected connected_all texted_with texted
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
66 syn keyword herculesStatement by_property cutting edge_touch enclosing inside
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
67 syn keyword herculesStatement inside_hole interact touching vertex
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
68
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
69 " Hercules comments
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
70 syn region herculesComment start="/\*" skip="/\*" end="\*/" contains=herculesTodo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
71 syn match herculesComment "//.*" contains=herculesTodo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
72
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
73 " Preprocessor directives
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
74 syn match herculesPreProc "^#.*"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
75 syn match herculesPreProc "^@.*"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
76 syn match herculesPreProc "macros"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
77
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
78 " Hercules COMMENT option
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
79 syn match herculesCmdCmnt "comment.*=.*"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
80
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
81 " Spacings, Resolutions, Ranges, Ratios, etc.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
82 syn match herculesNumber "-\=\<[0-9]\+L\=\>\|0[xX][0-9]\+\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
83
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
84 " Parenthesis sanity checker
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
85 syn region herculesZone matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" transparent contains=ALLBUT,herculesError,herculesBraceError,herculesCurlyError
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
86 syn region herculesZone matchgroup=Delimiter start="{" matchgroup=Delimiter end="}" transparent contains=ALLBUT,herculesError,herculesBraceError,herculesParenError
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
87 syn region herculesZone matchgroup=Delimiter start="\[" matchgroup=Delimiter end="]" transparent contains=ALLBUT,herculesError,herculesCurlyError,herculesParenError
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
88 syn match herculesError "[)\]}]"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
89 syn match herculesBraceError "[)}]" contained
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
90 syn match herculesCurlyError "[)\]]" contained
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
91 syn match herculesParenError "[\]}]" contained
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
92
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
93 " Hercules output format
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
94 "syn match herculesOutput "([0-9].*)"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
95 "syn match herculesOutput "([0-9].*\;.*)"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
96 syn match herculesOutput "perm\s*=.*(.*)"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
97 syn match herculesOutput "temp\s*=\s*"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
98 syn match herculesOutput "error\s*=\s*(.*)"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
99
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
100 "Modify the following as needed. The trade-off is performance versus functionality.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
101 syn sync lines=100
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
102
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
103 " Define the default highlighting.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
104 " For version 5.7 and earlier: only when not done already
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
105 " For version 5.8 and later: only when an item doesn't have highlighting yet
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
106 if version >= 508 || !exists("did_hercules_syntax_inits")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
107 if version < 508
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
108 let did_hercules_syntax_inits = 1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
109 " Default methods for highlighting.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
110 command -nargs=+ HiLink hi link <args>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
111 else
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
112 command -nargs=+ HiLink hi def link <args>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
113 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
114
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
115 HiLink herculesStatement Statement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
116 HiLink herculesType Type
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
117 HiLink herculesComment Comment
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
118 HiLink herculesPreProc PreProc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
119 HiLink herculesTodo Todo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
120 HiLink herculesOutput Include
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
121 HiLink herculesCmdCmnt Identifier
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
122 HiLink herculesNumber Number
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
123 HiLink herculesBraceError herculesError
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
124 HiLink herculesCurlyError herculesError
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
125 HiLink herculesParenError herculesError
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
126 HiLink herculesError Error
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
127
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
128 delcommand HiLink
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
129 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
130
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
131 let b:current_syntax = "hercules"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
132
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
133 " vim: ts=8