first commit. dokuwiki.
[h2N7SspZmY.git] / inc / geshi / vb.php
blobbc43ca4a8ca6266f094c8f527575dc72eb4f2a76
1 <?php
2 /*************************************************************************************
3 * vb.php
4 * ------
5 * Author: Roberto Rossi (rsoftware@altervista.org)
6 * Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org),
7 * Nigel McNie (http://qbnz.com/highlighter)
8 * Release Version: 1.0.8.4
9 * Date Started: 2004/08/30
11 * Visual Basic language file for GeSHi.
13 * CHANGES
14 * -------
15 * 2008/08/27 (1.0.8.1)
16 * - changed keyword list for better Visual Studio compliance
17 * 2008/08/26 (1.0.8.1)
18 * - Fixed multiline comments
19 * 2004/11/27 (1.0.1)
20 * - Added support for multiple object splitters
21 * 2004/08/30 (1.0.0)
22 * - First Release
24 * TODO (updated 2004/11/27)
25 * -------------------------
27 *************************************************************************************
29 * This file is part of GeSHi.
31 * GeSHi is free software; you can redistribute it and/or modify
32 * it under the terms of the GNU General Public License as published by
33 * the Free Software Foundation; either version 2 of the License, or
34 * (at your option) any later version.
36 * GeSHi is distributed in the hope that it will be useful,
37 * but WITHOUT ANY WARRANTY; without even the implied warranty of
38 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 * GNU General Public License for more details.
41 * You should have received a copy of the GNU General Public License
42 * along with GeSHi; if not, write to the Free Software
43 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
45 ************************************************************************************/
47 $language_data = array (
48 'LANG_NAME' => 'Visual Basic',
49 'COMMENT_SINGLE' => array(),
50 'COMMENT_MULTI' => array(),
51 'COMMENT_REGEXP' => array(
52 // Comments (either single or multiline with _
53 1 => '/\'.*(?<! _)\n/sU',
55 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
56 'QUOTEMARKS' => array('"'),
57 'ESCAPE_CHAR' => '',
58 'KEYWORDS' => array(
59 1 => array(
60 'AddressOf', 'Alias', 'And', 'Append', 'As', 'BF', 'Binary',
61 'Boolean', 'ByRef', 'Byte', 'ByVal', 'Call', 'Case', 'CBool',
62 'CByte', 'CCur', 'CDate', 'CDbl', 'CDec', 'CInt', 'CLng',
63 'Close', 'Collection', 'Const', 'Control', 'CSng', 'CStr',
64 'Currency', 'CVar', 'Date', 'Declare', 'Dim', 'Do', 'Double',
65 'Each', 'Else', 'ElseIf', 'End', 'Enum', 'Erase', 'Error',
66 'Event', 'Exit', 'Explicit', 'False', 'For', 'Friend',
67 'Function', 'Get', 'GoSub', 'Goto', 'If', 'Implements', 'In',
68 'Input', 'Integer', 'Is', 'LBound', 'Let', 'Lib', 'Like',
69 'Line', 'Long', 'Loop', 'Mod', 'New', 'Next', 'Not',
70 'Nothing', 'Object', 'On', 'Open', 'Option', 'Optional',
71 'Or', 'Output', 'ParamArray', 'Preserve', 'Print', 'Private',
72 'Property', 'Public', 'RaiseEvent', 'Random', 'ReDim',
73 'Resume', 'Select', 'Set', 'Single', 'Static', 'Step',
74 'Stop', 'String', 'Sub', 'Then', 'To', 'True', 'Type',
75 'TypeOf', 'UBound', 'Until', 'Variant', 'While', 'With',
76 'WithEvents', 'Xor'
79 'SYMBOLS' => array(
81 'CASE_SENSITIVE' => array(
82 GESHI_COMMENTS => false,
83 1 => false
85 'STYLES' => array(
86 'KEYWORDS' => array(
87 1 => 'color: #000080;'
89 'COMMENTS' => array(
90 1 => 'color: #008000;'
92 'BRACKETS' => array(
94 'STRINGS' => array(
95 0 => 'color: #800000;'
97 'NUMBERS' => array(
99 'METHODS' => array(
101 'SYMBOLS' => array(
103 'ESCAPE_CHAR' => array(
104 0 => 'color: #800000; font-weight: bold;'
106 'SCRIPT' => array(
108 'REGEXPS' => array(
111 'URLS' => array(
112 1 => ''
114 'OOLANG' => false,
115 'OBJECT_SPLITTERS' => array(
117 'REGEXPS' => array(
119 'STRICT_MODE_APPLIES' => GESHI_NEVER,
120 'SCRIPT_DELIMITERS' => array(
122 'HIGHLIGHT_STRICT_BLOCK' => array(
124 'PARSER_CONTROL' => array(
125 'ENABLE_FLAGS' => array(
126 'BRACKETS' => GESHI_NEVER,
127 'SYMBOLS' => GESHI_NEVER,
128 'NUMBERS' => GESHI_NEVER