~ubuntu-branches/ubuntu/karmic/dokuwiki/karmic

« back to all changes in this revision

Viewing changes to inc/geshi/vhdl.php

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2007-03-29 19:44:52 UTC
  • mfrom: (2.1.6 feisty)
  • Revision ID: james.westby@ubuntu.com-20070329194452-8r2w798oo21ago6l
Tags: 0.0.20061106-6
* High-urgency upload for fixing RC bug.
* Make fr.po's translation of "global" consistent. (Closes: #416509)
* Remove /etc/apache*/conf.d/ on purge. (Closes: #387974)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.7.15
 
8
 * CVS Revision Version: $Revision: 1.13.2.5 $
 
9
 * Date Started: 2005/06/15
 
10
 * Last Modified: $Date: 2006/09/23 02:05:48 $
 
11
 * 
 
12
 * VHDL (VHSICADL, very high speed integrated circuit HDL) language file for GeSHi.
 
13
 *
 
14
 * CHANGES
 
15
 * -------
 
16
 * 2006/06/15 (1.0.0)
 
17
 *  -  First Release
 
18
 *
 
19
 * TODO
 
20
 * ----
 
21
 *
 
22
 *************************************************************************************
 
23
 *
 
24
 *     This file is part of GeSHi.
 
25
 *
 
26
 *   GeSHi is free software; you can redistribute it and/or modify
 
27
 *   it under the terms of the GNU General Public License as published by
 
28
 *   the Free Software Foundation; either version 2 of the License, or
 
29
 *   (at your option) any later version.
 
30
 *
 
31
 *   GeSHi is distributed in the hope that it will be useful,
 
32
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
33
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
34
 *   GNU General Public License for more details.
 
35
 *
 
36
 *   You should have received a copy of the GNU General Public License
 
37
 *   along with GeSHi; if not, write to the Free Software
 
38
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
39
 *
 
40
 ************************************************************************************/
 
41
 
 
42
$language_data = array (
 
43
    'LANG_NAME' => 'VHDL',
 
44
    'COMMENT_SINGLE' => array(1 => '--'),
 
45
    'COMMENT_MULTI' => array(),
 
46
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
 
47
    'QUOTEMARKS' => array('"'),
 
48
    'ESCAPE_CHAR' => '',
 
49
    'KEYWORDS' => array(
 
50
        /*keywords*/
 
51
        1 => array(
 
52
            'access','after','alias','all','assert','architecture','begin',
 
53
            'block','body','buffer','bus','case','component','configuration','constant',
 
54
            'disconnect','downto','else','elsif','end','entity','exit','file','for',
 
55
            'function','generate','generic','group','guarded','if','impure','in',
 
56
            'inertial','inout','is','label','library','linkage','literal','loop',
 
57
            'map','new','next','null','of','on','open','others','out','package',
 
58
            'port','postponed','procedure','process','pure','range','record','register',
 
59
            'reject','report','return','select','severity','signal','shared','subtype',
 
60
            'then','to','transport','type','unaffected','units','until','use','variable',
 
61
            'wait','when','while','with','note','warning','error','failure','and',
 
62
            'or','xor','not','nor'
 
63
        ),
 
64
        /*types*/
 
65
        2 => array(
 
66
            'bit','bit_vector','character','boolean','integer','real','time','string',
 
67
            'severity_level','positive','natural','signed','unsigned','line','text',
 
68
            'std_logic','std_logic_vector','std_ulogic','std_ulogic_vector','qsim_state',
 
69
            'qsim_state_vector','qsim_12state','qsim_12state_vector','qsim_strength',
 
70
            'mux_bit','mux_vector','reg_bit','reg_vector','wor_bit','wor_vector'
 
71
        ),
 
72
        /*operators*/
 
73
        3 => array(
 
74
                '=','<=',':=','=>','=='
 
75
        )
 
76
    ),
 
77
    'SYMBOLS' => array(
 
78
        '[', ']', '(', ')',';','<','>',':'
 
79
    ),
 
80
    'CASE_SENSITIVE' => array(
 
81
        GESHI_COMMENTS => true,
 
82
        1 => false,
 
83
        2 => false
 
84
        ),
 
85
    'STYLES' => array(
 
86
        'KEYWORDS' => array(
 
87
            1 => 'color: #000000; font-weight: bold;',
 
88
            2 => 'color: #aa0000;'
 
89
            ),
 
90
        'COMMENTS' => array(
 
91
            1 => 'color: #adadad; font-style: italic;'
 
92
            ),
 
93
        'ESCAPE_CHAR' => array(
 
94
            0 => 'color: #000099; font-weight: bold;'
 
95
            ),
 
96
        'BRACKETS' => array(
 
97
            0 => 'color: #66cc66;'
 
98
            ),
 
99
        'STRINGS' => array(
 
100
            0 => 'color: #7f007f;'
 
101
            ),
 
102
        'NUMBERS' => array(
 
103
            0 => 'color: #ff0000;'
 
104
            ),
 
105
        'METHODS' => array(
 
106
            ),
 
107
        'SYMBOLS' => array(
 
108
            0 => 'color: #66cc66;'
 
109
            ),
 
110
        'REGEXPS' => array(
 
111
            0 => 'color: #ff0000;',
 
112
            1 => 'color: #ff0000;',
 
113
            2 => 'color: #ff0000;',
 
114
            3 => 'color: #ff0000;'
 
115
            ),
 
116
        'SCRIPT' => array(
 
117
            )
 
118
        ),
 
119
    'URLS' => array(
 
120
        1 => '',
 
121
        2 => ''
 
122
    ),
 
123
    'OOLANG' => false,
 
124
    'OBJECT_SPLITTERS' => array(
 
125
        ),
 
126
    'REGEXPS' => array(
 
127
        0 => '(\b(0x)[0-9a-fA-F]{2,}[hH]?|\b(0x)?[0-9a-fA-F]{2,}[hH])|'.
 
128
        '(\b[0-9]{1,}((\.){1}[0-9]{1,}){0,1}(E)[\-]{0,1}[0-9]{1,})|'.
 
129
         '(\b(ns))|'.
 
130
         "('[0-9a-zA-Z]+)",
 
131
         1 => "\b(''[0-9]'')"
 
132
        ),
 
133
    'STRICT_MODE_APPLIES' => GESHI_NEVER,
 
134
    'SCRIPT_DELIMITERS' => array(
 
135
        ),
 
136
    'HIGHLIGHT_STRICT_BLOCK' => array(
 
137
        )
 
138
);
 
139
 
 
140
?>