first commit. dokuwiki.
[h2N7SspZmY.git] / inc / geshi / vhdl.php
blob14072c9d7696dabfea92954c09c256664656ed4a
1 <?php
2 /*************************************************************************************
3 * vhdl.php
4 * --------
5 * Author: Alexander 'E-Razor' Krause (admin@erazor-zone.de)
6 * Copyright: (c) 2005 Alexander Krause
7 * Release Version: 1.0.8.4
8 * Date Started: 2005/06/15
10 * VHDL (VHSICADL, very high speed integrated circuit HDL) language file for GeSHi.
12 * CHANGES
13 * -------
14 * 2008/05/23 (1.0.7.22)
15 * - Added description of extra language features (SF#1970248)
16 * - Optimized regexp group 0 somewhat
17 * 2006/06/15 (1.0.0)
18 * - First Release
20 * TODO
21 * ----
23 *************************************************************************************
25 * This file is part of GeSHi.
27 * GeSHi is free software; you can redistribute it and/or modify
28 * it under the terms of the GNU General Public License as published by
29 * the Free Software Foundation; either version 2 of the License, or
30 * (at your option) any later version.
32 * GeSHi is distributed in the hope that it will be useful,
33 * but WITHOUT ANY WARRANTY; without even the implied warranty of
34 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 * GNU General Public License for more details.
37 * You should have received a copy of the GNU General Public License
38 * along with GeSHi; if not, write to the Free Software
39 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
41 ************************************************************************************/
43 $language_data = array (
44 'LANG_NAME' => 'VHDL',
45 'COMMENT_SINGLE' => array(1 => '--'),
46 'COMMENT_MULTI' => array('%' => '%'),
47 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
48 'QUOTEMARKS' => array('"'),
49 'ESCAPE_CHAR' => '',
50 'KEYWORDS' => array(
51 /*keywords*/
52 1 => array(
53 'access','after','alias','all','assert','attribute','architecture','begin',
54 'block','body','buffer','bus','case','component','configuration','constant',
55 'disconnect','downto','else','elsif','end','entity','exit','file','for',
56 'function','generate','generic','group','guarded','if','impure','in',
57 'inertial','inout','is','label','library','linkage','literal','loop',
58 'map','new','next','null','of','on','open','others','out','package',
59 'port','postponed','procedure','process','pure','range','record','register',
60 'reject','report','return','select','severity','signal','shared','subtype',
61 'then','to','transport','type','unaffected','units','until','use','variable',
62 'wait','when','while','with','note','warning','error','failure','and',
63 'or','xor','not','nor','used','memory','segments','dff','dffe','help_id',
64 'mod','info','latch','rising_edge','falling_edge'
66 /*types*/
67 2 => array(
68 'bit','bit_vector','character','boolean','integer','real','time','string',
69 'severity_level','positive','natural','signed','unsigned','line','text',
70 'std_logic','std_logic_vector','std_ulogic','std_ulogic_vector','qsim_state',
71 'qsim_state_vector','qsim_12state','qsim_12state_vector','qsim_strength',
72 'mux_bit','mux_vector','reg_bit','reg_vector','wor_bit','wor_vector',
73 'work','ieee','std_logic_signed','std_logic_1164','std_logic_arith',
74 'numeric_std'
77 /*operators*/
79 'SYMBOLS' => array(
80 '[', ']', '(', ')',
81 ';',':',
82 '<','>','=','<=',':=','=>','=='
84 'CASE_SENSITIVE' => array(
85 GESHI_COMMENTS => false,
86 1 => false,
87 2 => false
89 'STYLES' => array(
90 'KEYWORDS' => array(
91 1 => 'color: #000080; font-weight: bold;',
92 2 => 'color: #0000ff;'
94 'COMMENTS' => array(
95 1 => 'color: #008000; font-style: italic;',
96 'MULTI' => 'color: #008000; font-style: italic;'
98 'ESCAPE_CHAR' => array(
99 0 => 'color: #000099; font-weight: bold;'
101 'BRACKETS' => array(
102 0 => 'color: #000066;'
104 'STRINGS' => array(
105 0 => 'color: #7f007f;'
107 'NUMBERS' => array(
108 0 => 'color: #ff0000;'
110 'METHODS' => array(
112 'SYMBOLS' => array(
113 0 => 'color: #000066;'
115 'REGEXPS' => array(
116 0 => 'color: #ff0000;',
117 1 => 'color: #ff0000;'
119 'SCRIPT' => array(
122 'URLS' => array(
123 1 => '',
124 2 => ''
126 'OOLANG' => false,
127 'OBJECT_SPLITTERS' => array(
129 'REGEXPS' => array(
130 //Hex numbers and scientific notation for numbers
131 0 => '(\b0x[0-9a-fA-F]+|\b\d[0-9a-fA-F]+[hH])|'.
132 '(\b\d+?(\.\d+?)?E[+\-]?\d+)|(\bns)|'.
133 "('[0-9a-zA-Z]+(?!'))",
134 //Number characters?
135 1 => "\b(''\d'')"
137 'STRICT_MODE_APPLIES' => GESHI_NEVER,
138 'SCRIPT_DELIMITERS' => array(
140 'HIGHLIGHT_STRICT_BLOCK' => array(