| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language [ |
| 3 |
<!ENTITY varname "[A-Za-z_][A-Za-z0-9_]*"> |
| 4 |
<!ENTITY identifier "(?:\b&varname;\b|\\[^\\]*\\)"> |
| 5 |
<!ENTITY designator "(?:\b&varname;\b|\\[^\\]*\\|"[^"]*")"> |
| 6 |
<!ENTITY label "\b&varname;(?=\s*:(?!=))"> |
| 7 |
<!ENTITY bos "\b"> <!-- bol or space following --> |
| 8 |
]> |
| 9 |
<language name="VHDL" version="16" kateversion="5.62" section="Hardware" extensions="*.vhdl;*.vhd" mimetype="text/x-vhdl" author="Rocky Scaletta ([email protected]), Stefan Endrullis ([email protected]), Florent Ouchet ([email protected]), Chris Higgs ([email protected]), Jan Michel ([email protected]), Luigi Calligaris ([email protected])"> |
| 10 |
<!-- BNF: https://github.com/antlr/grammars-v4/blob/master/vhdl/vhdl.g4 (VHDL-2005) --> |
| 11 |
<!-- Based on VHDL-2008 --> |
| 12 |
<highlighting> |
| 13 |
<list name="keywordsToplevel"> |
| 14 |
<item>file</item> |
| 15 |
<item>library</item> |
| 16 |
<item>use</item> |
| 17 |
<item>with</item> |
| 18 |
</list> |
| 19 |
|
| 20 |
<list name="keywords"> |
| 21 |
<item>access</item> |
| 22 |
<item>after</item> |
| 23 |
<item>alias</item> |
| 24 |
<item>all</item> |
| 25 |
<item>array</item> |
| 26 |
<item>assert</item> |
| 27 |
<item>assume</item> |
| 28 |
<item>assume_guarantee</item> |
| 29 |
<item>attribute</item> |
| 30 |
<item>begin</item> |
| 31 |
<item>block</item> |
| 32 |
<item>body</item> |
| 33 |
<item>bus</item> |
| 34 |
<item>case</item> |
| 35 |
<item>component</item> |
| 36 |
<item>constant</item> |
| 37 |
<item>context</item> |
| 38 |
<item>cover</item> |
| 39 |
<item>default</item> |
| 40 |
<item>disconnect</item> |
| 41 |
<item>downto</item> |
| 42 |
<item>else</item> |
| 43 |
<item>elsif</item> |
| 44 |
<item>end</item> |
| 45 |
<item>fairness</item> |
| 46 |
<item>falling_edge</item> |
| 47 |
<item>false</item> |
| 48 |
<item>file</item> |
| 49 |
<item>for</item> |
| 50 |
<item>force</item> |
| 51 |
<item>function</item> |
| 52 |
<item>generate</item> |
| 53 |
<item>generic</item> |
| 54 |
<item>group</item> |
| 55 |
<item>guarded</item> |
| 56 |
<item>if</item> |
| 57 |
<item>impure</item> |
| 58 |
<item>inertial</item> |
| 59 |
<item>is</item> |
| 60 |
<item>label</item> |
| 61 |
<item>linkage</item> |
| 62 |
<item>literal</item> |
| 63 |
<item>map</item> |
| 64 |
<item>new</item> |
| 65 |
<item>null</item> |
| 66 |
<item>of</item> |
| 67 |
<item>on</item> |
| 68 |
<item>open</item> |
| 69 |
<item>others</item> |
| 70 |
<item>package</item> |
| 71 |
<item>parameter</item> |
| 72 |
<item>port</item> |
| 73 |
<item>postponed</item> |
| 74 |
<item>procedure</item> |
| 75 |
<item>process</item> |
| 76 |
<item>property</item> |
| 77 |
<item>protected</item> |
| 78 |
<item>pure</item> |
| 79 |
<item>range</item> |
| 80 |
<item>record</item> |
| 81 |
<item>register</item> |
| 82 |
<item>reject</item> |
| 83 |
<item>release</item> |
| 84 |
<item>report</item> |
| 85 |
<item>rising_edge</item> |
| 86 |
<item>select</item> |
| 87 |
<item>sequence</item> |
| 88 |
<item>severity</item> |
| 89 |
<item>signal</item> |
| 90 |
<item>shared</item> |
| 91 |
<item>strong</item> |
| 92 |
<item>subtype</item> |
| 93 |
<item>then</item> |
| 94 |
<item>to</item> |
| 95 |
<item>transport</item> |
| 96 |
<item>true</item> |
| 97 |
<item>type</item> |
| 98 |
<item>use</item> |
| 99 |
<item>unaffected</item> |
| 100 |
<item>units</item> |
| 101 |
<item>until</item> |
| 102 |
<item>variable</item> |
| 103 |
<item>view</item> |
| 104 |
<item>vmode</item> |
| 105 |
<item>vprop</item> |
| 106 |
<item>vunit</item> |
| 107 |
<item>wait</item> |
| 108 |
<item>when</item> |
| 109 |
<item>with</item> |
| 110 |
<item>note</item> |
| 111 |
<item>warning</item> |
| 112 |
<item>error</item> |
| 113 |
<item>failure</item> |
| 114 |
<item>in</item> |
| 115 |
<item>inout</item> |
| 116 |
<item>out</item> |
| 117 |
<item>buffer</item> |
| 118 |
<item>and</item> |
| 119 |
<item>abs</item> |
| 120 |
<item>or</item> |
| 121 |
<item>xor</item> |
| 122 |
<item>xnor</item> |
| 123 |
<item>not</item> |
| 124 |
<item>mod</item> |
| 125 |
<item>nand</item> |
| 126 |
<item>nor</item> |
| 127 |
<item>rem</item> |
| 128 |
<item>rol</item> |
| 129 |
<item>ror</item> |
| 130 |
<item>sla</item> |
| 131 |
<item>sra</item> |
| 132 |
<item>sll</item> |
| 133 |
<item>srl</item> |
| 134 |
</list> |
| 135 |
|
| 136 |
<list name="controls"> |
| 137 |
<item>exit</item> |
| 138 |
<item>next</item> |
| 139 |
<item>return</item> |
| 140 |
</list> |
| 141 |
|
| 142 |
<list name="signals"> |
| 143 |
<item>signal</item> |
| 144 |
<item>variable</item> |
| 145 |
<item>constant</item> |
| 146 |
<item>type</item> |
| 147 |
<item>attribute</item> |
| 148 |
</list> |
| 149 |
|
| 150 |
<list name="range"> |
| 151 |
<item>to</item> |
| 152 |
<item>downto</item> |
| 153 |
<item>others</item> |
| 154 |
</list> |
| 155 |
|
| 156 |
<list name="timeunits"> |
| 157 |
<item>fs</item> |
| 158 |
<item>ps</item> |
| 159 |
<item>ns</item> |
| 160 |
<item>us</item> |
| 161 |
<item>ms</item> |
| 162 |
<item>sec</item> |
| 163 |
<item>min</item> |
| 164 |
<item>hr</item> |
| 165 |
</list> |
| 166 |
|
| 167 |
<list name="types"> |
| 168 |
<item>bit</item> |
| 169 |
<item>bit_vector</item> |
| 170 |
<item>character</item> |
| 171 |
<item>boolean</item> |
| 172 |
<item>boolean_vector</item> |
| 173 |
<item>integer</item> |
| 174 |
<item>integer_vector</item> |
| 175 |
<item>real</item> |
| 176 |
<item>real_vector</item> |
| 177 |
<item>time</item> |
| 178 |
<item>time_vector</item> |
| 179 |
<item>delay_length</item> |
| 180 |
<item>string</item> |
| 181 |
<item>severity_level</item> |
| 182 |
<item>positive</item> |
| 183 |
<item>natural</item> |
| 184 |
<item>file_open_kind</item> |
| 185 |
<item>file_open_status</item> |
| 186 |
<item>signed</item> |
| 187 |
<item>unsigned</item> |
| 188 |
<item>unresolved_unsigned</item> |
| 189 |
<item>unresolved_signed</item> |
| 190 |
<item>line</item> |
| 191 |
<item>text</item> |
| 192 |
<item>side</item> |
| 193 |
<item>width</item> |
| 194 |
<item>std_logic</item> |
| 195 |
<item>std_logic_vector</item> |
| 196 |
<item>std_ulogic</item> |
| 197 |
<item>std_ulogic_vector</item> |
| 198 |
<item>x01</item> |
| 199 |
<item>x01z</item> |
| 200 |
<item>ux01</item> |
| 201 |
<item>ux01z</item> |
| 202 |
<item>qsim_state</item> |
| 203 |
<item>qsim_state_vector</item> |
| 204 |
<item>qsim_12state</item> |
| 205 |
<item>qsim_12state_vector</item> |
| 206 |
<item>qsim_strength</item> |
| 207 |
<item>mux_bit</item> |
| 208 |
<item>mux_vector</item> |
| 209 |
<item>reg_bit</item> |
| 210 |
<item>reg_vector</item> |
| 211 |
<item>wor_bit</item> |
| 212 |
<item>wor_vector</item> |
| 213 |
</list> |
| 214 |
|
| 215 |
<list name="instantiated"> |
| 216 |
<item>configuration</item> |
| 217 |
<item>component</item> |
| 218 |
<item>entity</item> |
| 219 |
</list> |
| 220 |
|
| 221 |
<contexts> |
| 222 |
|
| 223 |
|
| 224 |
<!-- start / global environment --> |
| 225 |
<context name="start" attribute="Normal Text" lineEndContext="#stay"> |
| 226 |
<IncludeRules context="preExpression"/> |
| 227 |
|
| 228 |
<WordDetect attribute="Control" context="entity" insensitive="1" String="entity"/> |
| 229 |
<WordDetect attribute="Control" context="configuration" insensitive="1" String="configuration"/> |
| 230 |
<WordDetect attribute="Control" context="architecture" insensitive="1" String="architecture"/> |
| 231 |
<WordDetect attribute="Control" context="package" insensitive="1" String="package"/> |
| 232 |
<WordDetect attribute="Keyword" context="context" insensitive="1" String="context"/> |
| 233 |
|
| 234 |
<keyword attribute="Keyword" context="#stay" String="keywordsToplevel"/> |
| 235 |
|
| 236 |
<WordDetect attribute="Signal" context="type" insensitive="1" String="type"/> |
| 237 |
<WordDetect attribute="Redirection" context="function" insensitive="1" String="function"/> |
| 238 |
<WordDetect attribute="Keyword" context="procedure" insensitive="1" String="procedure" beginRegion="ProcedureRegion1"/> |
| 239 |
<WordDetect attribute="Control" context="component" insensitive="1" String="component"/> |
| 240 |
<WordDetect attribute="Keyword" context="view" insensitive="1" String="view" beginRegion="sig"/> |
| 241 |
<keyword attribute="Data Type" context="#stay" String="types"/> |
| 242 |
<keyword attribute="Data Type" context="#stay" String="timeunits"/> |
| 243 |
<keyword attribute="Range" context="#stay" String="range"/> |
| 244 |
<keyword attribute="Signal" context="signal" String="signals"/> |
| 245 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 246 |
<keyword attribute="Control" context="#stay" String="controls"/> |
| 247 |
<DetectIdentifier attribute="Normal Text"/> |
| 248 |
</context> |
| 249 |
|
| 250 |
<!-- |
| 251 |
package ::= |
| 252 |
*package* identifier *is* *new* name |
| 253 |
[ *generic* *map* ( association_list ) ] ; |
| 254 |
|
| 255 |
| *package* identifier *is* |
| 256 |
[ *generic* ( interface_list ) ; |
| 257 |
[ *generic* *map* ( association_list ) ; ] ] |
| 258 |
{ package_declarative_item } |
| 259 |
*end* [ *package* ] [ identifier ] ; |
| 260 |
|
| 261 |
| *package *body* identifier *is* |
| 262 |
{ process_declarative_item } |
| 263 |
*end* [ *package* *body* ] [ identifier ] ; |
| 264 |
--> |
| 265 |
<context name="package" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop"> |
| 266 |
<IncludeRules context="blank"/> |
| 267 |
<WordDetect attribute="Control" context="#pop!packagebody" insensitive="true" String="body"/> |
| 268 |
<RegExpr attribute="Name" context="package_main" beginRegion="PackageRegion1" |
| 269 |
String="(&identifier;)"/> |
| 270 |
</context> |
| 271 |
|
| 272 |
<context name="package_main" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="package_is"> |
| 273 |
<RegExpr attribute="Control" context="#pop#pop" dynamic="1" insensitive="1" |
| 274 |
String="&bos;end(\s+package\b)?(\s+%1)?\s*;" endRegion="PackageRegion1"/> |
| 275 |
<WordDetect attribute="Error" context="#pop#pop!expressionError" insensitive="true" |
| 276 |
String="end" endRegion="PackageRegion1"/> |
| 277 |
</context> |
| 278 |
|
| 279 |
<context name="package_is" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!package_decl"> |
| 280 |
<IncludeRules context="blank"/> |
| 281 |
<WordDetect attribute="Keyword" insensitive="1" String="is"/> |
| 282 |
<WordDetect attribute="Keyword" insensitive="1" String="new" context="#pop#pop#pop!package_is_new"/> |
| 283 |
</context> |
| 284 |
|
| 285 |
<context name="package_is_new" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!package_is_new_main"> |
| 286 |
<IncludeRules context="blank"/> |
| 287 |
<IncludeRules context="pop_end"/> |
| 288 |
<DetectIdentifier attribute="Name" context="#pop!package_is_new_main"/> |
| 289 |
<RangeDetect attribute="Name" context="#pop!package_is_new_main" char=""" char1="""/> |
| 290 |
<RangeDetect attribute="Name" context="#pop!package_is_new_main" char="\" char1="\"/> |
| 291 |
</context> |
| 292 |
|
| 293 |
<context name="package_is_new_main" attribute="Normal Text" lineEndContext="#stay"> |
| 294 |
<IncludeRules context="blank"/> |
| 295 |
<DetectChar attribute="Normal Text" context="#pop" char=";" endRegion="PackageRegion1"/> |
| 296 |
<DetectChar attribute="Operator" char="."/> |
| 297 |
<IncludeRules context="pop_end"/> |
| 298 |
<IncludeRules context="find_instantiated_map"/> |
| 299 |
</context> |
| 300 |
|
| 301 |
<context name="package_decl" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!package_declarative_list"> |
| 302 |
<IncludeRules context="blank"/> |
| 303 |
<DetectChar attribute="Normal Text" char=";"/> |
| 304 |
<IncludeRules context="enclosed_interface_list"/> |
| 305 |
<IncludeRules context="find_instantiated_map"/> |
| 306 |
<WordDetect attribute="Control" insensitive="true" String="generic"/> |
| 307 |
</context> |
| 308 |
|
| 309 |
<context name="package_declarative_list" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 310 |
<IncludeRules context="blank"/> |
| 311 |
<IncludeRules context="package_declarative_start_expr"/> |
| 312 |
<IncludeRules context="start_simple_expr"/> |
| 313 |
</context> |
| 314 |
|
| 315 |
<!-- package body environment --> |
| 316 |
|
| 317 |
<context name="packagebody" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop"> |
| 318 |
<IncludeRules context="blank"/> |
| 319 |
<RegExpr attribute="Name" context="packagebody_main" beginRegion="PackageBodyRegion1" |
| 320 |
String="(&identifier;)"/> |
| 321 |
</context> |
| 322 |
|
| 323 |
<context name="packagebody_main" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="packagebody_is"> |
| 324 |
<RegExpr attribute="Control" context="#pop#pop" dynamic="1" insensitive="1" |
| 325 |
String="&bos;end(\s+package\s+body\b)?(\s+%1)?\s*;" endRegion="PackageBodyRegion1"/> |
| 326 |
<WordDetect attribute="Error" context="#pop#pop!expressionError" insensitive="true" |
| 327 |
String="end" endRegion="PackageBodyRegion1"/> |
| 328 |
</context> |
| 329 |
|
| 330 |
<context name="packagebody_is" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!package_declarative_list"> |
| 331 |
<IncludeRules context="blank"/> |
| 332 |
<WordDetect attribute="Keyword" context="#pop!package_declarative_list" insensitive="1" String="is"/> |
| 333 |
</context> |
| 334 |
|
| 335 |
<!-- |
| 336 |
architecture ::= |
| 337 |
*architecture* identifier *of* name *is* |
| 338 |
{ block_declarative_item } |
| 339 |
*begin* |
| 340 |
{ concurrent_statement } |
| 341 |
*end* [ *architecture* ] [ identifier ] ; |
| 342 |
--> |
| 343 |
<context name="architecture" attribute="Normal Text" lineEndContext="#stay"> |
| 344 |
<IncludeRules context="blank"/> |
| 345 |
<RegExpr attribute="Name" context="arch_end" beginRegion="ArchitectureRegion1" |
| 346 |
String="(&identifier;)"/> |
| 347 |
</context> |
| 348 |
|
| 349 |
<context name="arch_end" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="arch_of"> |
| 350 |
<RegExpr attribute="Control" context="#pop#pop" insensitive="1" dynamic="1" |
| 351 |
String="&bos;end(\s+architecture\b)?(\s+%1)?\s*;" endRegion="ArchitectureRegion1"/> |
| 352 |
<WordDetect attribute="Error" context="#pop#pop!expressionError" insensitive="1" |
| 353 |
String="end" endRegion="ArchitectureRegion1"/> |
| 354 |
</context> |
| 355 |
|
| 356 |
<context name="arch_of" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!block_declarative_stmt"> |
| 357 |
<IncludeRules context="blank"/> |
| 358 |
<WordDetect attribute="Keyword" context="#pop!arch_ref" insensitive="1" String="of"/> |
| 359 |
</context> |
| 360 |
|
| 361 |
<context name="arch_ref" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!block_declarative_stmt"> |
| 362 |
<IncludeRules context="blank"/> |
| 363 |
<WordDetect attribute="Keyword" context="#pop!block_declarative_stmt" insensitive="1" String="is" /> |
| 364 |
<IncludeRules context="reference"/> |
| 365 |
</context> |
| 366 |
|
| 367 |
<context name="reference" attribute="Normal Text" lineEndContext="#stay"> |
| 368 |
<DetectIdentifier attribute="Reference"/> |
| 369 |
<RangeDetect attribute="Reference" char=""" char1="""/> |
| 370 |
<RangeDetect attribute="Reference" char="\" char1="\"/> |
| 371 |
<DetectChar attribute="Reference" char="."/> |
| 372 |
</context> |
| 373 |
|
| 374 |
<!-- { block_declarative_item } --> |
| 375 |
<context name="block_declarative_stmt" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 376 |
<IncludeRules context="blank"/> |
| 377 |
<IncludeRules context="block_declarative_start_expr"/> |
| 378 |
<WordDetect attribute="Control" context="#pop!concurrent_stmt" insensitive="1" String="begin"/> |
| 379 |
<IncludeRules context="start_simple_expr"/> |
| 380 |
</context> |
| 381 |
|
| 382 |
<context name="block_declarative_start_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 383 |
<IncludeRules context="package_declarative_start_expr"/> |
| 384 |
<WordDetect attribute="Control" context="for_block_decl" insensitive="1" String="for" beginRegion="LoopRegion1"/> |
| 385 |
</context> |
| 386 |
|
| 387 |
<context name="package_declarative_start_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 388 |
<WordDetect attribute="Control" context="component" insensitive="1" String="component"/> |
| 389 |
<IncludeRules context="process_declarative_start_expr"/> |
| 390 |
</context> |
| 391 |
|
| 392 |
<context name="process_declarative_start_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 393 |
<WordDetect attribute="Control" context="package" insensitive="1" String="package"/> |
| 394 |
<WordDetect attribute="Signal" context="type" insensitive="1" String="type"/> |
| 395 |
<WordDetect attribute="Redirection" context="function" insensitive="1" String="function"/> |
| 396 |
<WordDetect attribute="Keyword" context="procedure" insensitive="1" String="procedure" beginRegion="ProcedureRegion1"/> |
| 397 |
<!-- *shared* *variable* ... --> |
| 398 |
<WordDetect attribute="Keyword" insensitive="1" String="shared"/> |
| 399 |
<!-- *impure* *function* ... --> |
| 400 |
<WordDetect attribute="Keyword" insensitive="1" String="impure"/> |
| 401 |
<!-- *pure* *function* ... --> |
| 402 |
<WordDetect attribute="Keyword" insensitive="1" String="pure"/> |
| 403 |
<WordDetect attribute="Keyword" context="view" insensitive="1" String="view" beginRegion="sig"/> |
| 404 |
<keyword attribute="Signal" context="signal" String="signals"/> |
| 405 |
</context> |
| 406 |
|
| 407 |
<context name="start_simple_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 408 |
<IncludeRules context="pop_end"/> |
| 409 |
<keyword attribute="Keyword" context="sequential_stmt_expr" String="keywords"/> |
| 410 |
<DetectIdentifier attribute="Normal Text" context="sequential_stmt_expr"/> |
| 411 |
</context> |
| 412 |
|
| 413 |
<context name="start_simple_expr_then_pop" attribute="Normal Text" lineEndContext="#stay"> |
| 414 |
<IncludeRules context="pop_end"/> |
| 415 |
<keyword attribute="Keyword" context="#pop!sequential_stmt_expr" String="keywords"/> |
| 416 |
<DetectIdentifier attribute="Normal Text" context="#pop!sequential_stmt_expr"/> |
| 417 |
</context> |
| 418 |
|
| 419 |
<!-- { concurrent_statement } --> |
| 420 |
<context name="concurrent_stmt" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="concurrent_stmt_item"> |
| 421 |
<IncludeRules context="blank"/> |
| 422 |
<IncludeRules context="pop_end"/> |
| 423 |
<IncludeRules context="concurrent_label"/> |
| 424 |
</context> |
| 425 |
|
| 426 |
<context name="concurrent_label" attribute="Normal Text" lineEndContext="#stay"> |
| 427 |
<RegExpr attribute="Name" context="concurrent_stmt_label" String="\b(?!(process|constant|signal|variable)\b)&label;"/> |
| 428 |
</context> |
| 429 |
|
| 430 |
<context name="concurrent_stmt_label" attribute="Normal Text" lineEndContext="#stay"> |
| 431 |
<DetectChar attribute="Operator" context="#pop!concurrent_stmt_labelized_item" char=":"/> |
| 432 |
<DetectSpaces attribute="Normal Text"/> |
| 433 |
</context> |
| 434 |
|
| 435 |
<context name="concurrent_stmt_labelized_item" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!sequential_stmt_expr"> |
| 436 |
<IncludeRules context="blank"/> |
| 437 |
<WordDetect attribute="Control" context="#pop!case_generate" insensitive="1" String="case" beginRegion="CaseRegion1"/> |
| 438 |
<WordDetect attribute="Control" context="#pop!for_generate" insensitive="1" String="for" beginRegion="LoopRegion1"/> |
| 439 |
<WordDetect attribute="Control" context="#pop!if_generate" insensitive="1" String="if" beginRegion="IfRegion1"/> |
| 440 |
<keyword attribute="Keyword" context="#pop!instantiated_unit" String="instantiated"/> |
| 441 |
<IncludeRules context="concurrent_stmt_item_start"/> |
| 442 |
<IncludeRules context="instantiated_unit_name"/> |
| 443 |
<DetectIdentifier attribute="Normal Text" context="#pop!sequential_stmt_expr"/> |
| 444 |
</context> |
| 445 |
|
| 446 |
<context name="concurrent_stmt_item" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!sequential_stmt_expr"> |
| 447 |
<IncludeRules context="blank"/> |
| 448 |
<IncludeRules context="concurrent_stmt_item_start"/> |
| 449 |
<DetectIdentifier attribute="Normal Text" context="#pop!sequential_stmt_expr"/> |
| 450 |
</context> |
| 451 |
|
| 452 |
<context name="concurrent_stmt_item_start" attribute="Normal Text" lineEndContext="#stay"> |
| 453 |
<WordDetect attribute="Keyword" context="#stay" insensitive="1" String="postponed"/> |
| 454 |
<WordDetect attribute="Control" context="#pop!package" insensitive="1" String="package"/> |
| 455 |
<WordDetect attribute="Signal" context="#pop!type" insensitive="1" String="type"/> |
| 456 |
<WordDetect attribute="Redirection" context="#pop!function" insensitive="1" String="function"/> |
| 457 |
<WordDetect attribute="Keyword" context="#pop!procedure" insensitive="1" String="procedure" beginRegion="ProcedureRegion1"/> |
| 458 |
<WordDetect attribute="Process" context="#pop!process" insensitive="1" String="process" beginRegion="ProcessRegion1"/> |
| 459 |
<WordDetect attribute="Control" context="#pop!block" insensitive="1" String="block" beginRegion="BlockRegion1"/> |
| 460 |
<WordDetect attribute="Keyword" context="#pop!view" insensitive="1" String="view"/> |
| 461 |
<keyword attribute="Signal" context="#pop!signal" String="signals" beginRegion="sig"/> |
| 462 |
<IncludeRules context="sequential_stmt_item_start"/> |
| 463 |
<keyword attribute="Keyword" context="#pop!sequential_stmt_expr" String="keywords"/> |
| 464 |
</context> |
| 465 |
|
| 466 |
<!-- |
| 467 |
block_declarative_item_for ::= |
| 468 |
*for* instantiation_list : name |
| 469 |
[ *use* entity_aspect ] |
| 470 |
[ generic_map_aspect ] |
| 471 |
[ port_map_aspect ] ; |
| 472 |
[ block_declarative_item_for_end ] |
| 473 |
|
| 474 |
block_declarative_item_for ::= |
| 475 |
[ *use* *vunit* name_list ; |
| 476 |
{ *use* *vunit* name_list ; } ] |
| 477 |
*end* *for* ; |
| 478 |
| *end* *for* ; |
| 479 |
--> |
| 480 |
<context name="for_block_decl" attribute="Normal Text" lineEndContext="#stay"> |
| 481 |
<IncludeRules context="preExpression"/> |
| 482 |
<DetectChar attribute="Normal Text" context="#pop!for_block_unit" char=";" endRegion="InstanceRegion1"/> |
| 483 |
<WordDetect context="#pop!expressionError" insensitive="1" String="end"/> |
| 484 |
<IncludeRules context="find_instantiated_map"/> |
| 485 |
<IncludeRules context="postExpression"/> |
| 486 |
</context> |
| 487 |
|
| 488 |
<context name="for_block_unit" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!for_block_end_region"> |
| 489 |
<IncludeRules context="blank"/> |
| 490 |
<WordDetect context="sequential_stmt_expr" insensitive="1" String="use"/> |
| 491 |
<WordDetect context="for_block_end" insensitive="1" String="end"/> |
| 492 |
</context> |
| 493 |
|
| 494 |
<context name="for_block_end" attribute="Normal Text" lineEndContext="#stay"> |
| 495 |
<RegExpr attribute="Control" context="#pop#pop" insensitive="1" |
| 496 |
String="&bos;end\s+for\s*;" endRegion="LoopRegion1"/> |
| 497 |
<WordDetect attribute="Error" context="#pop#pop!expressionError" insensitive="1" |
| 498 |
String="end" endRegion="LoopRegion1"/> |
| 499 |
</context> |
| 500 |
|
| 501 |
<context name="for_block_end_region" attribute="Normal Text" lineEndContext="#stay"> |
| 502 |
<RegExpr context="#pop" String="." lookAhead="1" endRegion="LoopRegion1"/> |
| 503 |
</context> |
| 504 |
|
| 505 |
<!-- |
| 506 |
instantiated ::= |
| 507 |
instantiated_unit |
| 508 |
instantiated_unit_decl |
| 509 |
|
| 510 |
instantiated_unit ::= |
| 511 |
[ *component* ] name |
| 512 |
| *entity* name [ ( identifier ) ] |
| 513 |
| *configuration* name |
| 514 |
|
| 515 |
instantiated_unit_decl ::= |
| 516 |
[ generic_map_aspect ] [ port_map_aspect ] ; |
| 517 |
|
| 518 |
port_map_aspect ::= |
| 519 |
*port* *map* ( association_list ) |
| 520 |
|
| 521 |
generic_map_aspect ::= |
| 522 |
*generic* *map* ( association_list ) |
| 523 |
--> |
| 524 |
<context name="instantiated_unit" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!instantiated_unit_decl"> |
| 525 |
<IncludeRules context="blank"/> |
| 526 |
<IncludeRules context="instantiated_unit_name"/> |
| 527 |
</context> |
| 528 |
|
| 529 |
<context name="instantiated_unit_name" attribute="Normal Text" lineEndContext="#stay"> |
| 530 |
<RegExpr attribute="Reference" context="#pop!instantiated_unit_decl" String="&varname;(\s*\.\s*&varname;)?" beginRegion="InstanceRegion1"/> |
| 531 |
</context> |
| 532 |
|
| 533 |
<context name="instantiated_unit_decl" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!end_instance_region"> |
| 534 |
<IncludeRules context="blank"/> |
| 535 |
<DetectChar attribute="Normal Text" context="#pop" char=";" endRegion="InstanceRegion1"/> |
| 536 |
<!-- *entity* name ( identifier ) --> |
| 537 |
<!-- ^_____________ --> |
| 538 |
<DetectChar attribute="Normal Text" context="instantiated_unit_identifier" char="("/> |
| 539 |
<IncludeRules context="find_instantiated_map"/> |
| 540 |
</context> |
| 541 |
|
| 542 |
<context name="find_instantiated_map" attribute="Normal Text" lineEndContext="#stay"> |
| 543 |
<RegExpr attribute="Keyword" context="instance_map_start" insensitive="true" String="&bos;(port|generic)\s+map\b\s*"/> |
| 544 |
</context> |
| 545 |
|
| 546 |
<context name="instantiated_unit_identifier" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop!end_instance_region"> |
| 547 |
<IncludeRules context="blank"/> |
| 548 |
<DetectChar attribute="Error" context="#pop" char=")"/> |
| 549 |
<RegExpr attribute="Normal Text" context="#pop!instantiated_unit_identifier_end" String="&identifier;"/> |
| 550 |
</context> |
| 551 |
<context name="instantiated_unit_identifier_end" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop!end_instance_region"> |
| 552 |
<IncludeRules context="blank"/> |
| 553 |
<DetectChar attribute="Normal Text" context="#pop" char=")"/> |
| 554 |
</context> |
| 555 |
|
| 556 |
<context name="end_instance_region" attribute="Normal Text" lineEndContext="#stay"> |
| 557 |
<WordDetect context="#pop" insensitive="1" String="end" lookAhead="1" endRegion="InstanceRegion1"/> |
| 558 |
<DetectIdentifier context="#pop" lookAhead="1" endRegion="InstanceRegion1"/> |
| 559 |
<RegExpr context="#pop" String="." lookAhead="1" endRegion="InstanceRegion1"/> |
| 560 |
</context> |
| 561 |
|
| 562 |
<context name="instance_map_start" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop"> |
| 563 |
<IncludeRules context="blank"/> |
| 564 |
<DetectChar attribute="Normal Text" context="#pop!instance_map" char="(" beginRegion="InstanceMapRegion"/> |
| 565 |
</context> |
| 566 |
|
| 567 |
<!-- Inside a port or generic map --> |
| 568 |
<context name="instance_map" attribute="Normal Text" lineEndContext="#stay"> |
| 569 |
<AnyChar attribute="Error" context="#stay" String="<;:"/> |
| 570 |
<IncludeRules context="preExpression"/> |
| 571 |
<DetectChar attribute="Normal Text" context="#pop" char=")" endRegion="InstanceMapRegion"/> |
| 572 |
<IncludeRules context="enclosed_association_list"/> |
| 573 |
<IncludeRules context="postExpression"/> |
| 574 |
</context> |
| 575 |
|
| 576 |
<!-- |
| 577 |
if ::= |
| 578 |
*if* expression *then* |
| 579 |
{ sequential_statement } |
| 580 |
{ *elsif* expression *then* |
| 581 |
{ sequential_statement } } |
| 582 |
[ *else* |
| 583 |
{ sequential_statement } ] |
| 584 |
*end* *if* [ label ] ; |
| 585 |
--> |
| 586 |
<context name="if_start" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="if_expr"> |
| 587 |
<RegExpr attribute="Control" context="#pop" insensitive="true" endRegion="IfRegion1" |
| 588 |
String="&bos;end\s+if(\s+&varname;)?\s*;"/> |
| 589 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 590 |
String="end" endRegion="IfRegion1"/> |
| 591 |
</context> |
| 592 |
|
| 593 |
<context name="if_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 594 |
<IncludeRules context="preExpression"/> |
| 595 |
<IncludeRules context="pop_end"/> |
| 596 |
<WordDetect attribute="Control" context="if_body" insensitive="true" String="then"/> |
| 597 |
<IncludeRules context="postExpression"/> |
| 598 |
</context> |
| 599 |
|
| 600 |
<context name="if_body" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_item"> |
| 601 |
<IncludeRules context="blank"/> |
| 602 |
<WordDetect attribute="Control" context="#pop" insensitive="true" String="elsif"/> |
| 603 |
<WordDetect attribute="Control" context="#pop#pop!sequential_stmt" insensitive="true" String="else"/> |
| 604 |
<WordDetect attribute="Control" context="#pop#pop" insensitive="true" String="end" lookAhead="1"/> |
| 605 |
<IncludeRules context="sequential_label"/> |
| 606 |
</context> |
| 607 |
|
| 608 |
<!-- |
| 609 |
case ::= |
| 610 |
*case* [ ? ] expression *is* |
| 611 |
*when* choices => { sequential_statement } |
| 612 |
{ *when* choices => { sequential_statement } } |
| 613 |
*end* *case* [ ? ] [ label ] ; |
| 614 |
--> |
| 615 |
<context name="case" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="case_expr"> |
| 616 |
<RegExpr attribute="Control" context="#pop" insensitive="true" endRegion="CaseRegion1" |
| 617 |
String="&bos;end\s+case(\s*[?])?(?:\s*\b&varname;)?\s*;"/> |
| 618 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 619 |
String="end" endRegion="CaseRegion1"/> |
| 620 |
</context> |
| 621 |
|
| 622 |
<context name="case_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 623 |
<IncludeRules context="preExpression"/> |
| 624 |
<IncludeRules context="pop_end"/> |
| 625 |
<WordDetect attribute="Keyword" context="#pop!case_is" insensitive="true" String="is"/> |
| 626 |
<DetectChar char=";" attribute="Normal Text" context="#pop!case_body" beginRegion="CaseWhenRegion1"/> |
| 627 |
<IncludeRules context="postExpression"/> |
| 628 |
</context> |
| 629 |
|
| 630 |
<context name="case_is" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!case_when"> |
| 631 |
<IncludeRules context="blank"/> |
| 632 |
<WordDetect attribute="Control" context="#pop!case_when" insensitive="true" String="when"/> |
| 633 |
</context> |
| 634 |
|
| 635 |
<context name="case_when" attribute="Normal Text" lineEndContext="#stay"> |
| 636 |
<Detect2Chars char="=" char1=">" attribute="Operator" context="#pop!case_body" beginRegion="CaseWhenRegion1"/> |
| 637 |
<IncludeRules context="preExpression"/> |
| 638 |
<DetectChar char=";" attribute="Normal Text" context="#pop!case_body" beginRegion="CaseWhenRegion1"/> |
| 639 |
<IncludeRules context="case_when_post_expr"/> |
| 640 |
</context> |
| 641 |
|
| 642 |
<context name="case_when_post_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 643 |
<WordDetect attribute="Keyword" insensitive="1" String="others"/> |
| 644 |
<IncludeRules context="pop_end"/> |
| 645 |
<IncludeRules context="keywordExpression"/> |
| 646 |
<DetectIdentifier attribute="Name"/> |
| 647 |
</context> |
| 648 |
|
| 649 |
<context name="case_body" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_item"> |
| 650 |
<IncludeRules context="blank"/> |
| 651 |
<WordDetect attribute="Control" context="#pop!case_when" insensitive="1" String="when" endRegion="CaseWhenRegion1"/> |
| 652 |
<WordDetect context="#pop" insensitive="1" String="end" lookAhead="1" endRegion="CaseWhenRegion1"/> |
| 653 |
<IncludeRules context="sequential_label"/> |
| 654 |
</context> |
| 655 |
<!-- 'when' and 'end case' are checked at the beginning of the line for better code folding --> |
| 656 |
|
| 657 |
<!-- |
| 658 |
while ::= |
| 659 |
*while* expression *loop* |
| 660 |
{ sequential_statement } |
| 661 |
*end* *loop* [ label ] ; |
| 662 |
|
| 663 |
for ::= |
| 664 |
*for* identifier *in* discrete_range *loop* |
| 665 |
{ sequential_statement } |
| 666 |
*end* *loop* [ label ] ; |
| 667 |
--> |
| 668 |
<context name="while" attribute="Normal Text" lineEndContext="#stay"> |
| 669 |
<IncludeRules context="preExpression"/> |
| 670 |
<WordDetect attribute="Control" context="#pop!loop" insensitive="true" String="loop" beginRegion="LoopRegion1"/> |
| 671 |
<IncludeRules context="pop_end"/> |
| 672 |
<IncludeRules context="postExpression"/> |
| 673 |
</context> |
| 674 |
|
| 675 |
<!-- |
| 676 |
loop ::= |
| 677 |
*loop* |
| 678 |
{ sequential_statement } |
| 679 |
*end* *loop* [ label ] ; |
| 680 |
--> |
| 681 |
<context name="loop" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt"> |
| 682 |
<RegExpr attribute="Control" context="#pop" insensitive="true" endRegion="LoopRegion1" |
| 683 |
String="&bos;end\s+loop(\s+&varname;)?\s*;"/> |
| 684 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 685 |
String="end" endRegion="LoopRegion1"/> |
| 686 |
</context> |
| 687 |
|
| 688 |
<!--====declare ===============--> |
| 689 |
<context name="declare" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="block_body"> |
| 690 |
<RegExpr attribute="Keyword" context="#pop" insensitive="true" endRegion="DeclareRegion1" |
| 691 |
String="&bos;end(\s+declare)?\s*;"/> |
| 692 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 693 |
String="end" endRegion="DeclareRegion1"/> |
| 694 |
</context> |
| 695 |
|
| 696 |
<!-- |
| 697 |
entity ::= |
| 698 |
*entity* identifier *is* |
| 699 |
[ entity_header ] |
| 700 |
{ entity_declarative_item } |
| 701 |
[ *begin* |
| 702 |
{ entity_statement } ] |
| 703 |
*end* [ *entity* ] [ identifier ] ; |
| 704 |
|
| 705 |
entity_header ::= |
| 706 |
[ *generic* ( interface_list ) ; ] |
| 707 |
[ *port* ( interface_list ) ; ] |
| 708 |
--> |
| 709 |
<context name="entity" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop"> |
| 710 |
<IncludeRules context="blank"/> |
| 711 |
<RegExpr attribute="Name" context="entity_main" beginRegion="EntityRegion1" |
| 712 |
String="(&identifier;)"/> |
| 713 |
</context> |
| 714 |
|
| 715 |
<context name="entity_main" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="entity_header"> |
| 716 |
<RegExpr attribute="Control" context="#pop#pop" dynamic="1" insensitive="1" |
| 717 |
String="&bos;end(\s+entity)?(\s+%1)?\s*;" endRegion="EntityRegion1"/> |
| 718 |
<WordDetect attribute="Error" context="#pop#pop!expressionError" insensitive="true" |
| 719 |
String="end" endRegion="EntityRegion1"/> |
| 720 |
</context> |
| 721 |
|
| 722 |
<context name="entity_header" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!entity_decl"> |
| 723 |
<IncludeRules context="blank"/> |
| 724 |
<IncludeRules context="enclosed_interface_list"/> |
| 725 |
<DetectChar attribute="Normal Text" char=";"/> |
| 726 |
<WordDetect attribute="Control" insensitive="true" String="generic"/> |
| 727 |
<WordDetect attribute="Control" insensitive="true" String="port"/> |
| 728 |
<WordDetect attribute="Keyword" insensitive="true" String="is"/> |
| 729 |
</context> |
| 730 |
|
| 731 |
<context name="entity_decl" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 732 |
<IncludeRules context="blank"/> |
| 733 |
<IncludeRules context="process_declarative_start_expr"/> |
| 734 |
<WordDetect attribute="Keyword" context="#pop!entity_stmt" insensitive="1" String="begin"/> |
| 735 |
<IncludeRules context="start_simple_expr"/> |
| 736 |
</context> |
| 737 |
|
| 738 |
<context name="entity_stmt" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="entity_stmt_item"> |
| 739 |
<IncludeRules context="blank"/> |
| 740 |
<IncludeRules context="pop_end"/> |
| 741 |
<RegExpr attribute="Name" context="entity_stmt_label" String="&label;"/> |
| 742 |
</context> |
| 743 |
|
| 744 |
<context name="entity_stmt_label" attribute="Normal Text" lineEndContext="#stay"> |
| 745 |
<DetectChar attribute="Operator" context="#pop!entity_stmt_item" char=":"/> |
| 746 |
<DetectSpaces attribute="Normal Text"/> |
| 747 |
</context> |
| 748 |
|
| 749 |
<context name="entity_stmt_item" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!sequential_stmt_expr"> |
| 750 |
<IncludeRules context="blank"/> |
| 751 |
<WordDetect attribute="Keyword" context="#stay" insensitive="1" String="postponed"/> |
| 752 |
<WordDetect attribute="Process" context="#pop!process" insensitive="1" String="process" beginRegion="ProcessRegion1"/> |
| 753 |
<IncludeRules context="start_simple_expr_then_pop"/> |
| 754 |
</context> |
| 755 |
|
| 756 |
<!-- |
| 757 |
configuration ::= |
| 758 |
*configuration* identifier *of* name *is* |
| 759 |
{ configuration_declarative_item } |
| 760 |
{ verification_unit_binding_indication ; } |
| 761 |
*for* block_specification |
| 762 |
{ use_clause } |
| 763 |
{ configuration_item } |
| 764 |
*end* *for* ; |
| 765 |
*end* [ *configuration* ] [ identifier ] ; |
| 766 |
--> |
| 767 |
<context name="configuration" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop"> |
| 768 |
<IncludeRules context="blank"/> |
| 769 |
<RegExpr attribute="Name" context="conf_of" beginRegion="ConfigurationRegion1" |
| 770 |
String="(&identifier;)"/> |
| 771 |
</context> |
| 772 |
|
| 773 |
<context name="conf_of" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="conf_is"> |
| 774 |
<IncludeRules context="blank"/> |
| 775 |
<WordDetect attribute="Keyword" context="conf_ref" insensitive="1" String="of"/> |
| 776 |
<RegExpr attribute="Control" context="#pop#pop" insensitive="1" dynamic="1" |
| 777 |
String="&bos;end(\s+configuration\b)?(\s+%1)?\s*;" endRegion="ConfigurationRegion1"/> |
| 778 |
<WordDetect attribute="Error" context="#pop#pop!expressionError" insensitive="1" |
| 779 |
String="end" endRegion="ConfigurationRegion1"/> |
| 780 |
</context> |
| 781 |
|
| 782 |
<context name="conf_ref" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!conf_decl"> |
| 783 |
<IncludeRules context="blank"/> |
| 784 |
<WordDetect attribute="Keyword" context="#pop!conf_decl" insensitive="1" String="is" /> |
| 785 |
<IncludeRules context="reference"/> |
| 786 |
</context> |
| 787 |
|
| 788 |
<context name="conf_is" attribute="Control" lineEndContext="#stay" fallthroughContext="#pop#pop#pop"> |
| 789 |
<IncludeRules context="blank"/> |
| 790 |
<WordDetect attribute="Keyword" context="#pop!conf_decl" insensitive="1" String="is" /> |
| 791 |
</context> |
| 792 |
|
| 793 |
<context name="conf_decl" attribute="Normal Text" lineEndContext="#stay"> |
| 794 |
<IncludeRules context="preExpression"/> |
| 795 |
<WordDetect attribute="Control" context="conf_for" insensitive="1" String="for" beginRegion="LoopRegion1"/> |
| 796 |
<IncludeRules context="pop_end"/> |
| 797 |
<IncludeRules context="postExpression"/> |
| 798 |
</context> |
| 799 |
|
| 800 |
<context name="conf_for" attribute="Normal Text" lineEndContext="#stay"> |
| 801 |
<IncludeRules context="preExpression"/> |
| 802 |
<WordDetect attribute="Control" context="conf_for" insensitive="1" String="for" beginRegion="LoopRegion1"/> |
| 803 |
<WordDetect attribute="Control" context="conf_for_end" insensitive="1" lookAhead="1" String="end" endRegion="LoopRegion1"/> |
| 804 |
<IncludeRules context="postExpression"/> |
| 805 |
</context> |
| 806 |
|
| 807 |
<context name="conf_for_end" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop!expressionError"> |
| 808 |
<RegExpr attribute="Control" context="#pop#pop" insensitive="true" String="&bos;end(\s+for\b)?\s*;"/> |
| 809 |
</context> |
| 810 |
|
| 811 |
<!-- |
| 812 |
context ::= |
| 813 |
*context* identifier *is* |
| 814 |
{ context_item } |
| 815 |
*end* [ *context* ] [ identifier ] ; |
| 816 |
|
| 817 |
| *context* selected_name { , selected_name } ; |
| 818 |
|
| 819 |
context_item ::= |
| 820 |
*library* identifier { , identifier } ; |
| 821 |
| *use* selected_name { , selected_name } ; |
| 822 |
| *context* selected_name { , selected_name } ; |
| 823 |
|
| 824 |
selected_name ::= prefix . suffix |
| 825 |
--> |
| 826 |
<context name="context" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!sequential_stmt_expr"> |
| 827 |
<IncludeRules context="blank"/> |
| 828 |
<RegExpr attribute="Name" context="#pop!context_main" beginRegion="ContextRegion1" |
| 829 |
String="(&identifier;)(?!\.)"/> |
| 830 |
</context> |
| 831 |
|
| 832 |
<context name="context_main" attribute="Control" lineEndContext="#stay" fallthroughContext="context_decl"> |
| 833 |
<RegExpr attribute="Keyword" context="#pop" dynamic="1" insensitive="1" |
| 834 |
String="&bos;end(\s+context)?(\s+%1)?\s*;" endRegion="ContextRegion1"/> |
| 835 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="1" |
| 836 |
String="end" endRegion="ContextRegion1"/> |
| 837 |
</context> |
| 838 |
|
| 839 |
<context name="context_decl" attribute="Normal Text" lineEndContext="#stay"> |
| 840 |
<IncludeRules context="preExpression"/> |
| 841 |
<keyword attribute="Keyword" context="sequential_stmt_expr" String="keywordsToplevel"/> |
| 842 |
<IncludeRules context="pop_end"/> |
| 843 |
<IncludeRules context="postExpression"/> |
| 844 |
</context> |
| 845 |
|
| 846 |
|
| 847 |
<!--====Basic Stuff ===============--> |
| 848 |
<!-- comment and spaces --> |
| 849 |
<context name="blank" attribute="Normal Text" lineEndContext="#stay"> |
| 850 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 851 |
<Detect2Chars attribute="Comment" context="comment" char="-" char1="-"/> |
| 852 |
<Detect2Chars attribute="Comment" context="block_comment" char="/" char1="*"/> |
| 853 |
</context> |
| 854 |
|
| 855 |
<!-- |
| 856 |
abstract_literal ::= |
| 857 |
integer [ . integer ] [ exponent ] |
| 858 |
| base # based_integer [ . based_integer ] # [ exponent ] |
| 859 |
|
| 860 |
base ::= integer |
| 861 |
integer ::= digit { [ _ ] digit } |
| 862 |
exponent ::= E [ + ] integer | E – integer |
| 863 |
based_integer ::= extended_digit { [ _ ] extended_digit } |
| 864 |
extended_digit ::= digit | letter |
| 865 |
--> |
| 866 |
<context name="abstract_literal" attribute="Integer" lineEndContext="#pop" fallthroughContext="exponent"> |
| 867 |
<DetectChar attribute="Operator" char="."/> |
| 868 |
<DetectChar attribute="Operator" context="based_integer" char="#"/> |
| 869 |
<RegExpr attribute="Integer" context="exponent" String="_?[0-9]++(_[0-9]+)*"/> |
| 870 |
</context> |
| 871 |
<context name="exponent" attribute="Integer" lineEndContext="#pop#pop" fallthroughContext="#pop#pop"> |
| 872 |
<RegExpr attribute="Exponent" context="#pop#pop" String="[eE][+-]?[0-9]++(_[0-9]+)*+"/> |
| 873 |
<AnyChar attribute="Error" context="#pop#pop" String="eE_"/> |
| 874 |
</context> |
| 875 |
<context name="based_integer" attribute="Integer" lineEndContext="#pop#pop" fallthroughContext="#pop#pop"> |
| 876 |
<DetectChar attribute="Operator" char="."/> |
| 877 |
<DetectChar attribute="Error" char="_"/> |
| 878 |
<DetectChar attribute="Operator" context="#pop!exponent" char="#"/> |
| 879 |
<RegExpr attribute="Based Integer" String="[0-9a-fA-F]++(_[0-9a-fA-F]+)*"/> |
| 880 |
</context> |
| 881 |
|
| 882 |
<!-- |
| 883 |
external_name ::= |
| 884 |
<< *constant* external_pathname : subtype_indication >> |
| 885 |
| << *signal* external_pathname : subtype_indication >> |
| 886 |
| << *variable* external_pathname : subtype_indication >> |
| 887 |
--> |
| 888 |
<context name="external_name" attribute="Integer" lineEndContext="#stay" fallthroughContext="#pop"> |
| 889 |
<IncludeRules context="blank"/> |
| 890 |
<!-- back to expression context --> |
| 891 |
<keyword attribute="Signal" context="#pop" String="signals"/> |
| 892 |
</context> |
| 893 |
|
| 894 |
<!-- |
| 895 |
interface_list ::= |
| 896 |
interface_element { ; interface_element } |
| 897 |
|
| 898 |
interface_element ::= |
| 899 |
[ *constant* ] identifier_list : [ *in* ] subtype_indication [ := expression ] |
| 900 |
| [ *signal* ] identifier_list : [ *in* | *out* ] subtype_indication [ *bus* ] [ := expression ] |
| 901 |
| [ *variable* ] identifier_list : [ *in* | *out* ] subtype_indication [ := expression ] |
| 902 |
| *file* identifier_list : subtype_indication |
| 903 |
| *type* identifier |
| 904 |
| interface_subprogram_specification [ *is* name ] |
| 905 |
| interface_subprogram_specification [ *is* <> ] |
| 906 |
| *package* identifier *is* *new* name *generic* *map* ( association_list ) |
| 907 |
| *package* identifier *is* *new* name *generic* *map* ( <> ) |
| 908 |
| *package* identifier *is* *new* name *generic* *map* ( *default* ) |
| 909 |
|
| 910 |
interface_subprogram_specification ::= |
| 911 |
*procedure* designator [ [ *parameter* ] ( interface_list ) ] |
| 912 |
| [ *pure* | *impure* ] *function* designator |
| 913 |
[ [ *parameter* ] ( interface_list ) ] *return* name |
| 914 |
|
| 915 |
designator ::= identifier | string_literal |
| 916 |
--> |
| 917 |
<context name="enclosed_interface_list" attribute="Normal Text" lineEndContext="#stay"> |
| 918 |
<DetectChar attribute="Normal Text" context="interface_list" char="("/> |
| 919 |
</context> |
| 920 |
|
| 921 |
<context name="interface_list" attribute="Normal Text" lineEndContext="#stay"> |
| 922 |
<IncludeRules context="preExpression"/> |
| 923 |
<IncludeRules context="pop_end"/> |
| 924 |
<keyword attribute="Signal" String="signals"/> |
| 925 |
<IncludeRules context="postExpression"/> |
| 926 |
<DetectChar attribute="Normal Text" context="#pop" char=")"/> |
| 927 |
<IncludeRules context="enclosed_association_list"/> |
| 928 |
</context> |
| 929 |
|
| 930 |
<!-- |
| 931 |
association_list ::= |
| 932 |
association_element { , association_element } |
| 933 |
|
| 934 |
association_element ::= |
| 935 |
[ name [ ( name ) ] => ] actual_part |
| 936 |
|
| 937 |
actual_part ::= |
| 938 |
actual_designator |
| 939 |
| name ( actual_designator ) |
| 940 |
|
| 941 |
actual_designator ::= |
| 942 |
[ *inertial* ] expression |
| 943 |
| name |
| 944 |
| subtype_indication |
| 945 |
| *open* |
| 946 |
--> |
| 947 |
<context name="enclosed_association_list" attribute="Normal Text" lineEndContext="#stay"> |
| 948 |
<DetectChar attribute="Normal Text" context="association_list" char="("/> |
| 949 |
</context> |
| 950 |
|
| 951 |
<context name="association_list" attribute="Normal Text" lineEndContext="#stay"> |
| 952 |
<IncludeRules context="preExpression"/> |
| 953 |
<IncludeRules context="pop_end"/> |
| 954 |
<IncludeRules context="postExpression"/> |
| 955 |
<DetectChar attribute="Normal Text" context="#pop" char=")"/> |
| 956 |
<IncludeRules context="enclosed_association_list"/> |
| 957 |
<DetectChar context="#pop" char=";" lookAhead="1"/> |
| 958 |
</context> |
| 959 |
|
| 960 |
|
| 961 |
<!-- sequential statement --> |
| 962 |
<context name="sequential_stmt" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_item"> |
| 963 |
<IncludeRules context="blank"/> |
| 964 |
<IncludeRules context="pop_end"/> |
| 965 |
<IncludeRules context="sequential_label"/> |
| 966 |
</context> |
| 967 |
|
| 968 |
<context name="sequential_label" attribute="Normal Text" lineEndContext="#stay"> |
| 969 |
<RegExpr attribute="Name" context="sequential_stmt_label" String="&label;"/> |
| 970 |
</context> |
| 971 |
|
| 972 |
<context name="sequential_stmt_label" attribute="Normal Text" lineEndContext="#stay"> |
| 973 |
<DetectChar attribute="Operator" context="#pop!sequential_stmt_item" char=":"/> |
| 974 |
<DetectSpaces attribute="Normal Text"/> |
| 975 |
</context> |
| 976 |
|
| 977 |
<context name="sequential_stmt_item" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!sequential_stmt_expr"> |
| 978 |
<IncludeRules context="blank"/> |
| 979 |
<DetectChar attribute="Normal Text" context="#pop" char=";"/> |
| 980 |
<IncludeRules context="sequential_stmt_item_start"/> |
| 981 |
<IncludeRules context="start_simple_expr_then_pop"/> |
| 982 |
</context> |
| 983 |
|
| 984 |
<context name="sequential_stmt_item_start" attribute="Normal Text" lineEndContext="#stay"> |
| 985 |
<WordDetect attribute="Control" context="#pop!if_start" insensitive="1" String="if" beginRegion="IfRegion1"/> |
| 986 |
<WordDetect attribute="Control" context="#pop!case" insensitive="1" String="case" beginRegion="CaseRegion1"/> |
| 987 |
<WordDetect attribute="Control" context="#pop!while" insensitive="1" String="for"/> |
| 988 |
<WordDetect attribute="Control" context="#pop!while" insensitive="1" String="while"/> |
| 989 |
<WordDetect attribute="Control" context="#pop!loop" insensitive="1" String="loop" beginRegion="LoopRegion1"/> |
| 990 |
<WordDetect attribute="Keyword" context="#pop!declare" insensitive="1" String="declare" beginRegion="DeclareRegion1"/> |
| 991 |
<keyword attribute="Control" context="#pop!sequential_stmt_expr" String="controls"/> |
| 992 |
</context> |
| 993 |
|
| 994 |
<context name="sequential_stmt_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 995 |
<IncludeRules context="preExpression"/> |
| 996 |
<DetectChar attribute="Normal Text" context="#pop" char=";"/> |
| 997 |
<IncludeRules context="pop_end"/> |
| 998 |
<IncludeRules context="postExpression"/> |
| 999 |
</context> |
| 1000 |
|
| 1001 |
<!-- |
| 1002 |
if_generate ::= |
| 1003 |
*if* [ alternative_label : ] expression *generate* |
| 1004 |
generate_statement_body |
| 1005 |
{ *elsif* [ alternative_label : ] expression *generate* |
| 1006 |
generate_statement_body } |
| 1007 |
[ *else* [ alternative_label : ] *generate* |
| 1008 |
generate_statement_body ] |
| 1009 |
*end* *generate* [ label ] ; |
| 1010 |
|
| 1011 |
generate_statement_body ::= |
| 1012 |
generate_body |
| 1013 |
[ *end* [ alternative_label ] ; ] |
| 1014 |
--> |
| 1015 |
<context name="if_generate" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="if_generate_label"> |
| 1016 |
<RegExpr attribute="Control" context="#pop" insensitive="1" endRegion="IfRegion1" |
| 1017 |
String="&bos;end\s+generate(\s+&varname;)?\s*;"/> |
| 1018 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="1" |
| 1019 |
String="end" endRegion="IfRegion1"/> |
| 1020 |
</context> |
| 1021 |
|
| 1022 |
<context name="if_generate_label" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!if_generate_expr"> |
| 1023 |
<IncludeRules context="blank"/> |
| 1024 |
<RegExpr attribute="Name" context="if_generate_after_label" String="&label;"/> |
| 1025 |
</context> |
| 1026 |
|
| 1027 |
<context name="if_generate_after_label" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop!if_generate_expr"> |
| 1028 |
<DetectChar attribute="Operator" context="#pop#pop!if_generate_expr" char=":"/> |
| 1029 |
<DetectSpaces attribute="Normal Text"/> |
| 1030 |
</context> |
| 1031 |
|
| 1032 |
<context name="if_generate_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 1033 |
<IncludeRules context="preExpression"/> |
| 1034 |
<IncludeRules context="pop_end"/> |
| 1035 |
<WordDetect attribute="Control" context="#pop!if_generate_body" insensitive="1" String="generate"/> |
| 1036 |
<IncludeRules context="postExpression"/> |
| 1037 |
</context> |
| 1038 |
|
| 1039 |
<context name="if_generate_body" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 1040 |
<IncludeRules context="blank"/> |
| 1041 |
<IncludeRules context="generate_body_pre_start"/> |
| 1042 |
<WordDetect attribute="Control" context="#pop!if_generate_label" insensitive="1" String="elsif"/> |
| 1043 |
<WordDetect attribute="Control" context="#pop!if_generate_label" insensitive="1" String="else"/> |
| 1044 |
<WordDetect context="if_generate_body_end" insensitive="1" String="end" lookAhead="1"/> |
| 1045 |
<IncludeRules context="generate_body_post_start"/> |
| 1046 |
</context> |
| 1047 |
|
| 1048 |
<context name="if_generate_body_end" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!expressionError"> |
| 1049 |
<RegExpr context="#pop#pop" insensitive="1" String="end\s+generate\b" lookAhead="1"/> |
| 1050 |
<RegExpr attribute="Control" context="#pop" insensitive="1" String="end(\s+&varname;)?\s*;"/> |
| 1051 |
</context> |
| 1052 |
|
| 1053 |
<!-- |
| 1054 |
generate_body ::= |
| 1055 |
[ { block_declarative_item } |
| 1056 |
*begin* ] |
| 1057 |
{ concurrent_statement } |
| 1058 |
--> |
| 1059 |
<context name="generate_body" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 1060 |
<IncludeRules context="blank"/> |
| 1061 |
<IncludeRules context="generate_body_pre_start"/> |
| 1062 |
<IncludeRules context="pop_end"/> |
| 1063 |
<IncludeRules context="generate_body_post_start"/> |
| 1064 |
</context> |
| 1065 |
|
| 1066 |
<context name="generate_body_pre_start" attribute="Normal Text" lineEndContext="#stay"> |
| 1067 |
<IncludeRules context="block_declarative_start_expr"/> |
| 1068 |
|
| 1069 |
<!-- concurrent_stmt_item --> |
| 1070 |
<WordDetect attribute="Keyword" context="#stay" insensitive="1" String="postponed"/> |
| 1071 |
<WordDetect attribute="Process" context="process" insensitive="1" String="process" beginRegion="ProcessRegion1"/> |
| 1072 |
<WordDetect attribute="Control" context="block" insensitive="1" String="block" beginRegion="BlockRegion1"/> |
| 1073 |
|
| 1074 |
<!-- sequential_stmt_item --> |
| 1075 |
<WordDetect attribute="Control" context="if_start" insensitive="1" String="if" beginRegion="IfRegion1"/> |
| 1076 |
<WordDetect attribute="Control" context="case" insensitive="1" String="case" beginRegion="CaseRegion1"/> |
| 1077 |
<WordDetect attribute="Control" context="while" insensitive="1" String="while"/> |
| 1078 |
<WordDetect attribute="Control" context="loop" insensitive="1" String="loop" beginRegion="LoopRegion1"/> |
| 1079 |
<WordDetect attribute="Keyword" context="declare" insensitive="1" String="declare" beginRegion="DeclareRegion1"/> |
| 1080 |
<keyword attribute="Control" context="sequential_stmt_expr" String="controls"/> |
| 1081 |
|
| 1082 |
<WordDetect attribute="Control" insensitive="1" String="begin"/> |
| 1083 |
</context> |
| 1084 |
|
| 1085 |
<context name="generate_body_post_start" attribute="Normal Text" lineEndContext="#stay"> |
| 1086 |
<keyword attribute="Keyword" context="sequential_stmt_expr" String="keywords"/> |
| 1087 |
<IncludeRules context="concurrent_label"/> |
| 1088 |
<DetectIdentifier attribute="Normal Text" context="sequential_stmt_expr"/> |
| 1089 |
</context> |
| 1090 |
|
| 1091 |
<!-- |
| 1092 |
case_generate ::= |
| 1093 |
*case* expression *generate* |
| 1094 |
*when* [ label : ] choices => generate_statement_body |
| 1095 |
{ *when* [ label : ] choices => generate_statement_body } |
| 1096 |
*end* *generate* [ label ] ; |
| 1097 |
|
| 1098 |
generate_statement_body ::= |
| 1099 |
generate_body |
| 1100 |
[ *end* [ alternative_label ] ; ] |
| 1101 |
--> |
| 1102 |
<context name="case_generate" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="case_generate_expr"> |
| 1103 |
<RegExpr attribute="Control" context="#pop" insensitive="1" endRegion="CaseRegion1" |
| 1104 |
String="&bos;end\s+generate(\s+&varname;)?\s*;"/> |
| 1105 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="1" |
| 1106 |
String="end" endRegion="CaseRegion1"/> |
| 1107 |
</context> |
| 1108 |
|
| 1109 |
<context name="case_generate_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 1110 |
<IncludeRules context="preExpression"/> |
| 1111 |
<IncludeRules context="pop_end"/> |
| 1112 |
<WordDetect attribute="Control" context="#pop!case_generate_is" insensitive="1" String="generate"/> |
| 1113 |
<!-- fallback to case ... is --> |
| 1114 |
<WordDetect attribute="Keyword" context="#pop!case_is" insensitive="1" String="is"/> |
| 1115 |
<IncludeRules context="postExpression"/> |
| 1116 |
</context> |
| 1117 |
|
| 1118 |
<context name="case_generate_is" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!case_generate_when"> |
| 1119 |
<IncludeRules context="blank"/> |
| 1120 |
<WordDetect attribute="Control" context="case_generate_when" insensitive="1" String="when"/> |
| 1121 |
</context> |
| 1122 |
|
| 1123 |
<context name="case_generate_when" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!case_generate_when_expr"> |
| 1124 |
<IncludeRules context="blank"/> |
| 1125 |
<RegExpr attribute="Name" context="case_generate_when_label" String="&label;"/> |
| 1126 |
</context> |
| 1127 |
|
| 1128 |
<context name="case_generate_when_label" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop!case_generate_when_expr"> |
| 1129 |
<DetectChar attribute="Operator" context="#pop#pop!case_generate_when_expr" char=":"/> |
| 1130 |
<DetectSpaces attribute="Normal Text"/> |
| 1131 |
</context> |
| 1132 |
|
| 1133 |
<context name="case_generate_when_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 1134 |
<Detect2Chars char="=" char1=">" attribute="Operator" context="#pop!case_generate_body" beginRegion="CaseWhenRegion1"/> |
| 1135 |
<IncludeRules context="preExpression"/> |
| 1136 |
<DetectChar char=";" attribute="Normal Text" context="#pop!case_generate_body" beginRegion="CaseWhenRegion1"/> |
| 1137 |
<IncludeRules context="case_when_post_expr"/> |
| 1138 |
</context> |
| 1139 |
|
| 1140 |
<context name="case_generate_body" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 1141 |
<IncludeRules context="blank"/> |
| 1142 |
<IncludeRules context="generate_body_pre_start"/> |
| 1143 |
<WordDetect attribute="Control" context="#pop!case_generate_when" insensitive="1" String="when" endRegion="CaseWhenRegion1"/> |
| 1144 |
<WordDetect context="#pop!if_generate_body_end" insensitive="1" String="end" lookAhead="1" endRegion="CaseWhenRegion1"/> |
| 1145 |
<IncludeRules context="generate_body_post_start"/> |
| 1146 |
</context> |
| 1147 |
|
| 1148 |
<!-- |
| 1149 |
for_generate ::= |
| 1150 |
*for* parameter_specification *generate* |
| 1151 |
generate_body |
| 1152 |
*end* *generate* [ label ] ; |
| 1153 |
--> |
| 1154 |
<context name="for_generate" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="for_generate_expr"> |
| 1155 |
<RegExpr attribute="Control" context="#pop" insensitive="1" endRegion="LoopRegion1" |
| 1156 |
String="&bos;end\s+generate(\s+&varname;)?\s*;"/> |
| 1157 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="1" |
| 1158 |
String="end" endRegion="LoopRegion1"/> |
| 1159 |
</context> |
| 1160 |
|
| 1161 |
<context name="for_generate_expr" attribute="Normal Text" lineEndContext="#stay"> |
| 1162 |
<IncludeRules context="preExpression"/> |
| 1163 |
<IncludeRules context="pop_end"/> |
| 1164 |
<WordDetect attribute="Control" context="#pop!generate_body" insensitive="1" String="generate"/> |
| 1165 |
<IncludeRules context="postExpression"/> |
| 1166 |
</context> |
| 1167 |
|
| 1168 |
<!-- |
| 1169 |
block ::= |
| 1170 |
*block* [ ( condition ) ] [ *is* ] |
| 1171 |
[ generic_clause |
| 1172 |
[ generic_map_aspect ; ] ] |
| 1173 |
[ port_clause |
| 1174 |
[ port_map_aspect ; ] ] |
| 1175 |
{ block_declarative_item } |
| 1176 |
*begin* |
| 1177 |
{ concurrent_statement } |
| 1178 |
*end* *block* [ block_label ] ; |
| 1179 |
--> |
| 1180 |
<context name="block" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="block_cont"> |
| 1181 |
<RegExpr attribute="Control" context="#pop" insensitive="1" |
| 1182 |
String="&bos;end\s+block(\s+&varname;)?\s*;" endRegion="BlockRegion1"/> |
| 1183 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 1184 |
String="end" endRegion="BlockRegion1"/> |
| 1185 |
</context> |
| 1186 |
|
| 1187 |
<context name="block_cont" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!block_is"> |
| 1188 |
<IncludeRules context="blank"/> |
| 1189 |
<IncludeRules context="enclosed_association_list"/> |
| 1190 |
<WordDetect attribute="Keyword" context="#pop!block_is" insensitive="true" String="is"/> |
| 1191 |
</context> |
| 1192 |
|
| 1193 |
<context name="block_is" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!block_body"> |
| 1194 |
<IncludeRules context="blank"/> |
| 1195 |
<IncludeRules context="enclosed_interface_list"/> |
| 1196 |
<DetectChar attribute="Normal Text" char=";"/> |
| 1197 |
<IncludeRules context="find_instantiated_map"/> |
| 1198 |
<WordDetect attribute="Control" insensitive="true" String="generic"/> |
| 1199 |
<WordDetect attribute="Control" insensitive="true" String="port"/> |
| 1200 |
</context> |
| 1201 |
|
| 1202 |
<!-- as block_declarative_stmt but with begin as Keyword --> |
| 1203 |
<context name="block_body" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 1204 |
<IncludeRules context="blank"/> |
| 1205 |
<IncludeRules context="block_declarative_start_expr"/> |
| 1206 |
<WordDetect attribute="Keyword" context="#pop!concurrent_stmt" insensitive="1" String="begin"/> |
| 1207 |
<IncludeRules context="start_simple_expr"/> |
| 1208 |
</context> |
| 1209 |
|
| 1210 |
<!-- |
| 1211 |
process ::= |
| 1212 |
*process* [ ( *all* | name_list ) ] [ *is* ] |
| 1213 |
{ process_declarative_item } |
| 1214 |
*begin* |
| 1215 |
{ sequential_statement } |
| 1216 |
*end* [ *postponed* ] *process* [ label ] ; |
| 1217 |
--> |
| 1218 |
<context name="process" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="process_params"> |
| 1219 |
<RegExpr attribute="Process" context="#pop" insensitive="1" |
| 1220 |
String="&bos;end(\s+postponed)?(\s+process\b)?(\s+&varname;)?\s*;" endRegion="ProcessRegion1"/> |
| 1221 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 1222 |
String="end" endRegion="ProcessRegion1"/> |
| 1223 |
</context> |
| 1224 |
|
| 1225 |
<context name="process_params" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!process_decl"> |
| 1226 |
<IncludeRules context="blank"/> |
| 1227 |
<IncludeRules context="enclosed_association_list"/> |
| 1228 |
<WordDetect attribute="Keyword" context="#pop!process_decl" String="is"/> |
| 1229 |
</context> |
| 1230 |
|
| 1231 |
<context name="process_decl" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 1232 |
<IncludeRules context="blank"/> |
| 1233 |
<IncludeRules context="process_declarative_start_expr"/> |
| 1234 |
<WordDetect attribute="Process" context="#pop!sequential_stmt" insensitive="true" String="begin"/> |
| 1235 |
<IncludeRules context="start_simple_expr"/> |
| 1236 |
</context> |
| 1237 |
|
| 1238 |
<!-- expression --> |
| 1239 |
<context name="preExpression" attribute="Normal Text" lineEndContext="#stay"> |
| 1240 |
<IncludeRules context="blank"/> |
| 1241 |
<Detect2Chars attribute="Operator" context="external_name" char="<" char1="<"/> |
| 1242 |
<AnyChar attribute="Operator" context="#stay" String="[]&><=:+-*/|`.,?@"/> |
| 1243 |
<DetectChar attribute="Vector" context="string" char="""/> |
| 1244 |
<DetectChar attribute="Attribute" context="attribute" char="'"/> |
| 1245 |
<Int attribute="Integer" context="abstract_literal"/> |
| 1246 |
</context> |
| 1247 |
|
| 1248 |
<context name="postExpression" attribute="Normal Text" lineEndContext="#stay"> |
| 1249 |
<IncludeRules context="keywordExpression"/> |
| 1250 |
<DetectIdentifier attribute="Normal Text"/> |
| 1251 |
</context> |
| 1252 |
|
| 1253 |
<context name="keywordExpression" attribute="Normal Text" lineEndContext="#stay"> |
| 1254 |
<keyword attribute="Data Type" context="#stay" String="types"/> |
| 1255 |
<keyword attribute="Data Type" context="#stay" String="timeunits"/> |
| 1256 |
<keyword attribute="Range" context="#stay" String="range"/> |
| 1257 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 1258 |
</context> |
| 1259 |
|
| 1260 |
<!-- expression error --> |
| 1261 |
<context name="expressionError" attribute="Error" lineEndContext="#pop"> |
| 1262 |
<Detect2Chars attribute="Comment" context="comment" char="-" char1="-"/> |
| 1263 |
<DetectChar attribute="Error" context="#pop" char=";"/> |
| 1264 |
</context> |
| 1265 |
|
| 1266 |
<!-- other environments --> |
| 1267 |
<context name="comment" attribute="Comment" lineEndContext="#pop"> |
| 1268 |
<DetectSpaces/> |
| 1269 |
<IncludeRules context="##Comments"/> |
| 1270 |
</context> |
| 1271 |
|
| 1272 |
<context name="block_comment" attribute="Comment" lineEndContext="#stay"> |
| 1273 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/"/> |
| 1274 |
<IncludeRules context="comment"/> |
| 1275 |
</context> |
| 1276 |
|
| 1277 |
<context name="string" attribute="Vector" lineEndContext="#stay"> |
| 1278 |
<DetectChar attribute="Vector" context="#pop" char="""/> |
| 1279 |
</context> |
| 1280 |
|
| 1281 |
<context name="attribute" attribute="Attribute" lineEndContext="#pop"> |
| 1282 |
<!-- character_literal or end attribute --> |
| 1283 |
<RegExpr attribute="Attribute" context="#pop" String="[^']?'"/> |
| 1284 |
<DetectIdentifier attribute="Attribute"/> |
| 1285 |
<DetectChar attribute="Attribute" context="quot in att" char="""/> |
| 1286 |
<DetectChar attribute="Attribute" context="par in att" char="("/> |
| 1287 |
<DetectSpaces attribute="Normal Text" context="#pop"/> |
| 1288 |
<AnyChar attribute="Attribute" context="#pop" String=")=<>;" lookAhead="true" /> |
| 1289 |
</context> |
| 1290 |
|
| 1291 |
<context name="quot in att" attribute="Attribute" lineEndContext="#stay"> |
| 1292 |
<DetectChar attribute="Attribute" context="#pop" char="""/> |
| 1293 |
</context> |
| 1294 |
<context name="par in att" attribute="Attribute" lineEndContext="#stay"> |
| 1295 |
<DetectChar attribute="Attribute" context="#pop" char=")"/> |
| 1296 |
</context> |
| 1297 |
|
| 1298 |
<context name="signal" attribute="Normal Text" lineEndContext="#stay"> |
| 1299 |
<IncludeRules context="preExpression"/> |
| 1300 |
<DetectChar attribute="Normal Text" context="#pop" char=";"/> |
| 1301 |
<IncludeRules context="pop_end"/> |
| 1302 |
<IncludeRules context="postExpression"/> |
| 1303 |
</context> |
| 1304 |
|
| 1305 |
<!-- |
| 1306 |
type ::= *type* identifier [ *is* type_definition ] ; |
| 1307 |
|
| 1308 |
type_definition ::= |
| 1309 |
type_definition_range |
| 1310 |
| type_definition_record |
| 1311 |
| type_definition_protected |
| 1312 |
| ...... |
| 1313 |
--> |
| 1314 |
<context name="type" attribute="Normal Text" lineEndContext="#stay"> |
| 1315 |
<IncludeRules context="blank"/> |
| 1316 |
<DetectChar attribute="Normal Text" context="#pop" char=";"/> |
| 1317 |
<WordDetect attribute="Signal" context="type_is" insensitive="1" String="is"/> |
| 1318 |
<DetectIdentifier attribute="Normal Text"/> |
| 1319 |
</context> |
| 1320 |
|
| 1321 |
<context name="type_is" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop!signal"> |
| 1322 |
<IncludeRules context="blank"/> |
| 1323 |
<WordDetect attribute="Keyword" context="#pop#pop!type_record" insensitive="1" String="record" beginRegion="sig"/> |
| 1324 |
<WordDetect attribute="Keyword" context="#pop#pop!type_range" insensitive="1" String="range"/> |
| 1325 |
<WordDetect attribute="Keyword" context="#pop#pop!type_protected" insensitive="1" String="protected" beginRegion="BlockRegion1"/> |
| 1326 |
</context> |
| 1327 |
|
| 1328 |
<!-- type range |
| 1329 |
|
| 1330 |
type_definition_range ::= |
| 1331 |
*range* range |
| 1332 |
[ *units* |
| 1333 |
identifier |
| 1334 |
{ identifier = physical_literal ; } |
| 1335 |
*end* *units* [ identifier ] ] |
| 1336 |
|
| 1337 |
range ::= |
| 1338 |
attribute_name |
| 1339 |
| simple_expression direction simple_expression |
| 1340 |
|
| 1341 |
attribute_name ::= |
| 1342 |
prefix [ signature ] ' identifier [ ( expression ) ] |
| 1343 |
--> |
| 1344 |
<context name="type_range" attribute="Normal Text" lineEndContext="#stay"> |
| 1345 |
<IncludeRules context="preExpression"/> |
| 1346 |
<DetectChar attribute="Normal Text" context="#pop" char=";"/> |
| 1347 |
<WordDetect attribute="Control" context="#pop!type_range_units" insensitive="1" String="units" beginRegion="UnitRegion1"/> |
| 1348 |
<IncludeRules context="postExpression"/> |
| 1349 |
</context> |
| 1350 |
|
| 1351 |
<context name="type_range_units" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="type_body"> |
| 1352 |
<RegExpr attribute="Control" context="#pop" insensitive="1" |
| 1353 |
String="&bos;end\s+units(\s+&identifier;)?\s*;" endRegion="UnitRegion1"/> |
| 1354 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 1355 |
String="end" endRegion="UnitRegion1"/> |
| 1356 |
</context> |
| 1357 |
|
| 1358 |
<context name="type_body" attribute="Normal Text" lineEndContext="#stay"> |
| 1359 |
<IncludeRules context="preExpression"/> |
| 1360 |
<IncludeRules context="pop_end"/> |
| 1361 |
<IncludeRules context="postExpression"/> |
| 1362 |
</context> |
| 1363 |
|
| 1364 |
<!-- type record |
| 1365 |
|
| 1366 |
type_definition_record ::= |
| 1367 |
*record* |
| 1368 |
element_declaration |
| 1369 |
{ element_declaration } |
| 1370 |
*end* *record* [ identifier ] |
| 1371 |
--> |
| 1372 |
<context name="type_record" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="type_body"> |
| 1373 |
<RegExpr attribute="Keyword" context="#pop" insensitive="1" |
| 1374 |
String="&bos;end\s+record(\s+&identifier;)?\s*;" endRegion="sig"/> |
| 1375 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 1376 |
String="end" endRegion="sig"/> |
| 1377 |
</context> |
| 1378 |
|
| 1379 |
<!-- type protected |
| 1380 |
|
| 1381 |
type_definition_protected ::= |
| 1382 |
*protected* |
| 1383 |
{ protected_type_declarative_item } |
| 1384 |
*end* *protected* [ identifier ] |
| 1385 |
| *protected* *body* |
| 1386 |
{ process_declarative_item } |
| 1387 |
*end *protected* *body* [ simple name ] |
| 1388 |
--> |
| 1389 |
<context name="type_protected" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="type_protected_stmt"> |
| 1390 |
<IncludeRules context="blank"/> |
| 1391 |
<WordDetect attribute="Keyword" context="type_protected_stmt" insensitive="1" String="body"/> |
| 1392 |
<RegExpr attribute="Keyword" context="#pop" insensitive="1" |
| 1393 |
String="&bos;end\s+protected(\s+body)?(\s+&identifier;)?\s*;" endRegion="BlockRegion1"/> |
| 1394 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 1395 |
String="end" endRegion="BlockRegion1"/> |
| 1396 |
</context> |
| 1397 |
|
| 1398 |
<context name="type_protected_stmt" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 1399 |
<IncludeRules context="blank"/> |
| 1400 |
<IncludeRules context="process_declarative_start_expr"/> |
| 1401 |
<IncludeRules context="start_simple_expr"/> |
| 1402 |
</context> |
| 1403 |
|
| 1404 |
<!-- |
| 1405 |
view ::= |
| 1406 |
*view* identifier *of* name *is* |
| 1407 |
element_declaration |
| 1408 |
{ element_declaration } |
| 1409 |
*end* *view* [ identifier ] ; |
| 1410 |
--> |
| 1411 |
<context name="view" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="type_body"> |
| 1412 |
<RegExpr attribute="Keyword" context="#pop" insensitive="1" |
| 1413 |
String="&bos;end\s+view(\s+&identifier;)?\s*;" endRegion="sig"/> |
| 1414 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 1415 |
String="end" endRegion="sig"/> |
| 1416 |
</context> |
| 1417 |
|
| 1418 |
<!-- |
| 1419 |
function ::= |
| 1420 |
*function* designator |
| 1421 |
[ *generic* ( interface_list ) |
| 1422 |
[ generic_map_aspect ] ] |
| 1423 |
[ [ *parameter* ] ( interface_list ) ] *return* name ; |
| 1424 |
|
| 1425 |
| *function* identifier *is* *new* name |
| 1426 |
[ name_list ] |
| 1427 |
[ *return* name ] |
| 1428 |
[ generic_map_aspect ] ; |
| 1429 |
|
| 1430 |
| *function* identifier *is* |
| 1431 |
{ process_declarative_item } |
| 1432 |
*begin* |
| 1433 |
{ sequential_statement } |
| 1434 |
*end* [ *function* ] [ designator ] ; |
| 1435 |
--> |
| 1436 |
<context name="function" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="function_name"> |
| 1437 |
<IncludeRules context="blank"/> |
| 1438 |
<DetectIdentifier attribute="Name" context="function_name"/> |
| 1439 |
<RangeDetect attribute="Vector" context="function_name" char=""" char1="""/> |
| 1440 |
<RangeDetect attribute="Name" context="function_name" char="\" char1="\"/> |
| 1441 |
</context> |
| 1442 |
|
| 1443 |
<context name="function_name" attribute="Normal Text" lineEndContext="#stay"> |
| 1444 |
<IncludeRules context="blank"/> |
| 1445 |
<DetectChar attribute="Normal Text" context="function_params" char="("/> |
| 1446 |
<DetectChar attribute="Normal Text" context="#pop#pop" char=";"/> |
| 1447 |
<WordDetect attribute="Control" context="function_return" insensitive="1" String="return"/> |
| 1448 |
<WordDetect attribute="Keyword" context="#pop#pop!function_is" insensitive="1" String="is" beginRegion="FunctionRegion1"/> |
| 1449 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 1450 |
</context> |
| 1451 |
|
| 1452 |
<context name="function_params" attribute="Normal Text" lineEndContext="#stay"> |
| 1453 |
<IncludeRules context="preExpression"/> |
| 1454 |
<DetectChar attribute="Normal Text" context="#pop" char=")"/> |
| 1455 |
<IncludeRules context="pop_end"/> |
| 1456 |
<DetectChar attribute="Normal Text" context="function_params_recursive" char="("/> |
| 1457 |
<WordDetect attribute="Error" context="#pop!function_return" insensitive="1" String="return"/> |
| 1458 |
<keyword attribute="Signal" String="signals"/> |
| 1459 |
<IncludeRules context="postExpression"/> |
| 1460 |
</context> |
| 1461 |
<context name="function_params_recursive" attribute="Normal Text" lineEndContext="#stay"> |
| 1462 |
<IncludeRules context="preExpression"/> |
| 1463 |
<DetectChar attribute="Normal Text" context="#pop" char=")"/> |
| 1464 |
<DetectChar attribute="Normal Text" context="function_params_recursive" char="("/> |
| 1465 |
<WordDetect context="#pop" insensitive="1" String="return" lookAhead="1"/> |
| 1466 |
<IncludeRules context="postExpression"/> |
| 1467 |
</context> |
| 1468 |
|
| 1469 |
<context name="function_return" attribute="Normal Text" lineEndContext="#stay"> |
| 1470 |
<IncludeRules context="preExpression"/> |
| 1471 |
<DetectChar attribute="Normal Text" context="#pop#pop#pop" char=";"/> |
| 1472 |
<WordDetect attribute="Keyword" context="#pop#pop#pop!function_is" insensitive="1" String="is" beginRegion="FunctionRegion1"/> |
| 1473 |
<IncludeRules context="postExpression"/> |
| 1474 |
</context> |
| 1475 |
|
| 1476 |
<context name="function_is" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!function_decl"> |
| 1477 |
<IncludeRules context="blank"/> |
| 1478 |
<WordDetect attribute="Keyword" context="#pop!function_new" insensitive="1" String="new"/> |
| 1479 |
</context> |
| 1480 |
|
| 1481 |
<context name="function_new" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!sequential_stmt_expr"> |
| 1482 |
<IncludeRules context="blank"/> |
| 1483 |
<WordDetect attribute="Control" context="#pop!sequential_stmt_expr" insensitive="1" String="return"/> |
| 1484 |
<IncludeRules context="start_simple_expr_then_pop"/> |
| 1485 |
</context> |
| 1486 |
|
| 1487 |
<context name="function_decl" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 1488 |
<IncludeRules context="blank"/> |
| 1489 |
<IncludeRules context="process_declarative_start_expr"/> |
| 1490 |
<WordDetect attribute="Redirection" context="#pop!function_begin" insensitive="true" String="begin"/> |
| 1491 |
<IncludeRules context="start_simple_expr"/> |
| 1492 |
</context> |
| 1493 |
|
| 1494 |
<context name="function_begin" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt"> |
| 1495 |
<RegExpr attribute="Redirection" context="#pop" insensitive="1" |
| 1496 |
String="&bos;end(\s+function\b)?(\s+&designator;)?\s*;" endRegion="FunctionRegion1"/> |
| 1497 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 1498 |
String="end" endRegion="FunctionRegion1"/> |
| 1499 |
</context> |
| 1500 |
|
| 1501 |
<!-- |
| 1502 |
procedure ::= |
| 1503 |
*procedure* designator |
| 1504 |
[ *generic* ( interface_list ) |
| 1505 |
[ generic_map_aspect ] ] |
| 1506 |
[ [ *parameter* ] ( interface_list ) ] ; |
| 1507 |
|
| 1508 |
| *procedure* identifier *is* *new* name |
| 1509 |
[ name_list ] |
| 1510 |
[ *return* name ] |
| 1511 |
[ generic_map_aspect ] ; |
| 1512 |
|
| 1513 |
| *procedure* designator |
| 1514 |
[ [ *parameter* ] ( interface_list ) ] *is* |
| 1515 |
{ process_declarative_item } |
| 1516 |
*begin* |
| 1517 |
{ sequential_statement } |
| 1518 |
*end* [ *procedure* ] [ designator ] ; |
| 1519 |
--> |
| 1520 |
<context name="procedure" attribute="Normal Text" lineEndContext="#stay"> |
| 1521 |
<IncludeRules context="blank"/> |
| 1522 |
<DetectIdentifier attribute="Name" context="procedure_name"/> |
| 1523 |
<RangeDetect attribute="Vector" context="procedure_name" char=""" char1="""/> |
| 1524 |
<RangeDetect attribute="Name" context="procedure_name" char="\" char1="\"/> |
| 1525 |
</context> |
| 1526 |
|
| 1527 |
<context name="procedure_name" attribute="Normal Text" lineEndContext="#stay"> |
| 1528 |
<IncludeRules context="blank"/> |
| 1529 |
<IncludeRules context="enclosed_interface_list"/> |
| 1530 |
<DetectChar attribute="Normal Text" context="#pop#pop" char=";" endRegion="ProcedureRegion1"/> |
| 1531 |
<WordDetect attribute="Control" context="#pop#pop!procedure_is" insensitive="true" String="is"/> |
| 1532 |
<!-- ghdl extension ? |
| 1533 |
procedure readline (variable f: in text; l: inout line) <- no ; |
| 1534 |
procedure readline (file f: text; l: inout line) |
| 1535 |
is ... |
| 1536 |
--> |
| 1537 |
<WordDetect attribute="Keyword" context="#pop" insensitive="true" String="procedure" endRegion="ProcedureRegion1" beginRegion="ProcedureRegion1"/> |
| 1538 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 1539 |
</context> |
| 1540 |
|
| 1541 |
<context name="procedure_is" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!procedure_is2"> |
| 1542 |
<IncludeRules context="function_is"/> |
| 1543 |
</context> |
| 1544 |
|
| 1545 |
<!-- ghdl extension ? |
| 1546 |
*procedure* designator |
| 1547 |
(...) is |
| 1548 |
(...) is <- here |
| 1549 |
begin ... |
| 1550 |
--> |
| 1551 |
<context name="procedure_is2" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!procedure_decl"> |
| 1552 |
<IncludeRules context="blank"/> |
| 1553 |
<IncludeRules context="enclosed_interface_list"/> |
| 1554 |
<WordDetect attribute="Control" context="#pop!procedure_is" insensitive="true" String="is"/> |
| 1555 |
<WordDetect attribute="Keyword" insensitive="true" String="parameter"/> |
| 1556 |
</context> |
| 1557 |
|
| 1558 |
<context name="procedure_decl" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt_expr"> |
| 1559 |
<IncludeRules context="blank"/> |
| 1560 |
<IncludeRules context="process_declarative_start_expr"/> |
| 1561 |
<WordDetect attribute="Keyword" context="#pop!procedure_begin" insensitive="true" String="begin" endRegion="ProcedureRegion1" beginRegion="ProcedureRegion1"/> |
| 1562 |
<IncludeRules context="start_simple_expr"/> |
| 1563 |
</context> |
| 1564 |
|
| 1565 |
<context name="procedure_begin" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="sequential_stmt"> |
| 1566 |
<RegExpr attribute="Keyword" context="#pop" insensitive="1" |
| 1567 |
String="&bos;end(\s+procedure)?(\s+&designator;)?\s*;" endRegion="ProcedureRegion1"/> |
| 1568 |
<WordDetect attribute="Error" context="#pop!expressionError" insensitive="true" |
| 1569 |
String="end" endRegion="ProcedureRegion1"/> |
| 1570 |
</context> |
| 1571 |
|
| 1572 |
<!-- |
| 1573 |
component ::= |
| 1574 |
*component* identifier [ *is* ] |
| 1575 |
entity_header |
| 1576 |
*end* *component* [ identifier ] ; |
| 1577 |
--> |
| 1578 |
<context name="component" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop"> |
| 1579 |
<IncludeRules context="blank"/> |
| 1580 |
<RegExpr attribute="Name" context="component_main" beginRegion="ComponentRegion1" |
| 1581 |
String="(&identifier;)"/> |
| 1582 |
</context> |
| 1583 |
|
| 1584 |
<context name="component_main" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="component_body"> |
| 1585 |
<RegExpr attribute="Control" context="#pop#pop" dynamic="1" insensitive="1" |
| 1586 |
String="&bos;end\s+component\b(\s+%1)?\s*;" endRegion="ComponentRegion1"/> |
| 1587 |
<WordDetect attribute="Error" context="#pop#pop!expressionError" insensitive="true" |
| 1588 |
String="end" endRegion="ComponentRegion1"/> |
| 1589 |
</context> |
| 1590 |
|
| 1591 |
<context name="component_body" attribute="Normal Text" lineEndContext="#stay"> |
| 1592 |
<IncludeRules context="entity_header"/> |
| 1593 |
<IncludeRules context="pop_end"/> |
| 1594 |
<DetectIdentifier attribute="Error"/> |
| 1595 |
</context> |
| 1596 |
|
| 1597 |
<context name="pop_end" attribute="Normal Text" lineEndContext="#stay"> |
| 1598 |
<WordDetect context="#pop" insensitive="1" String="end" lookAhead="1"/> |
| 1599 |
</context> |
| 1600 |
|
| 1601 |
</contexts> |
| 1602 |
<itemDatas> |
| 1603 |
<itemData name="Normal Text" defStyleNum="dsNormal"/> |
| 1604 |
<itemData name="Keyword" defStyleNum="dsKeyword"/> |
| 1605 |
<itemData name="Data Type" defStyleNum="dsDataType"/> |
| 1606 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 1607 |
<itemData name="Integer" defStyleNum="dsDecVal"/> |
| 1608 |
<itemData name="Exponent" defStyleNum="dsFloat"/> |
| 1609 |
<itemData name="Based Integer" defStyleNum="dsBaseN"/> |
| 1610 |
<itemData name="Reference" defStyleNum="dsFunction"/> |
| 1611 |
<itemData name="Error" defStyleNum="dsError" bold="1"/> |
| 1612 |
<itemData name="Vector" defStyleNum="dsString"/> |
| 1613 |
<itemData name="Operator" defStyleNum="dsOthers"/> |
| 1614 |
<itemData name="Attribute" defStyleNum="dsBaseN"/> |
| 1615 |
<itemData name="Signal" defStyleNum="dsOthers"/> |
| 1616 |
<itemData name="Range" defStyleNum="dsOthers"/> |
| 1617 |
<itemData name="Redirection" defStyleNum="dsAttribute" bold="1"/> <!-- #223388 --> |
| 1618 |
<itemData name="Process" defStyleNum="dsSpecialChar" bold="1"/> <!-- #0099AA --> |
| 1619 |
<itemData name="Control" defStyleNum="dsControlFlow"/> <!-- #223388 --> |
| 1620 |
<itemData name="Name" defStyleNum="dsDecVal" bold="1"/> <!-- #bb6600 --> |
| 1621 |
</itemDatas> |
| 1622 |
</highlighting> |
| 1623 |
<general> |
| 1624 |
<comments> |
| 1625 |
<comment name="singleLine" start="--" position="afterwhitespace"/> |
| 1626 |
</comments> |
| 1627 |
<keywords casesensitive="0"/> |
| 1628 |
</general> |
| 1629 |
</language> |
| 1630 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |