2 /*************************************************************************************
5 * Author: Alan Juden (alan@judenware.org)
6 * Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.8.11
8 * Date Started: 2004/06/04
10 * VB.NET language file for GeSHi.
17 * TODO (updated 2004/11/27)
18 * -------------------------
20 *************************************************************************************
22 * This file is part of GeSHi.
24 * GeSHi is free software; you can redistribute it and/or modify
25 * it under the terms of the GNU General Public License as published by
26 * the Free Software Foundation; either version 2 of the License, or
27 * (at your option) any later version.
29 * GeSHi is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
34 * You should have received a copy of the GNU General Public License
35 * along with GeSHi; if not, write to the Free Software
36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
38 ************************************************************************************/
40 $language_data = array (
41 'LANG_NAME' => 'vb.net',
42 'COMMENT_SINGLE' => array(1 => "'"),
43 'COMMENT_MULTI' => array(),
44 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
45 'QUOTEMARKS' => array('"'),
50 'AddHandler', 'AddressOf', 'Alias', 'And', 'AndAlso', 'As', 'ByRef', 'ByVal',
51 'Call', 'Case', 'Catch', 'Char', 'Class', 'Const', 'Continue',
53 'Delegate', 'Dim', 'DirectCast', 'Do', 'Each', 'Else', 'ElseIf', 'End', 'EndIf',
54 'Enum', 'Erase', 'Error', 'Event', 'Exit', 'False', 'Finally', 'For', 'Friend', 'Function',
55 'Get', 'GetType', 'GetXMLNamespace', 'Global', 'GoSub', 'GoTo', 'Handles', 'If', 'Implements',
56 'Imports', 'In', 'Inherits', 'Interface', 'Is', 'IsNot', 'Let', 'Lib', 'Like', 'Loop', 'Me',
57 'Mod', 'Module', 'Module Statement', 'MustInherit', 'MustOverride', 'MyBase', 'MyClass', 'Namespace',
58 'Narrowing', 'New', 'Next', 'Not', 'Nothing', 'NotInheritable', 'NotOverridable', 'Of', 'On',
59 'Operator', 'Option', 'Optional', 'Or', 'OrElse', 'Out', 'Overloads', 'Overridable', 'Overrides',
60 'ParamArray', 'Partial', 'Private', 'Property', 'Protected', 'Public', 'RaiseEvent', 'ReadOnly', 'ReDim',
61 'REM', 'RemoveHandler', 'Resume', 'Return', 'Select','Set', 'Shadows', 'Shared', 'Static', 'Step',
62 'Stop', 'Structure', 'Sub', 'SyncLock', 'Then', 'Throw', 'To', 'True', 'Try', 'TryCast', 'TypeOf',
63 'Using', 'Wend', 'When', 'While', 'Widening', 'With', 'WithEvents', 'WriteOnly', 'Xor'
67 'Boolean', 'Byte', 'Date', 'Decimal', 'Double', 'Integer', 'Long', 'Object',
68 'SByte', 'Short', 'Single', 'String', 'UInteger', 'ULong', 'UShort'
72 '#Const', '#Else', '#ElseIf', '#End', '#If'
76 'CBool', 'CByte', 'CChar', 'CChr', 'CDate', 'CDbl', 'CDec','CInt', 'CLng', 'CLng8', 'CObj', 'CSByte', 'CShort',
77 'CSng', 'CStr', 'CType', 'CUInt', 'CULng', 'CUShort'
81 'By','From','Group','Where'
85 'ABS', 'ARRAY', 'ASC', 'ASCB', 'ASCW', 'CALLBYNAME', 'CHOOSE', 'CHR', 'CHR$', 'CHRB', 'CHRB$', 'CHRW',
86 'CLOSE', 'COMMAND', 'COMMAND$', 'CONVERSION',
87 'COS', 'CREATEOBJECT', 'CURDIR', 'CVDATE', 'DATEADD',
88 'DATEDIFF', 'DATEPART', 'DATESERIAL', 'DATEVALUE', 'DAY', 'DDB', 'DIR', 'DIR$',
89 'EOF', 'ERROR$', 'EXP', 'FILEATTR', 'FILECOPY', 'FILEDATATIME', 'FILELEN', 'FILTER',
90 'FIX', 'FORMAT', 'FORMAT$', 'FORMATCURRENCY', 'FORMATDATETIME', 'FORMATNUMBER',
91 'FORMATPERCENT', 'FREEFILE', 'FV', 'GETALLSETTINGS', 'GETATTRGETOBJECT', 'GETSETTING',
92 'HEX', 'HEX$', 'HOUR', 'IIF', 'IMESTATUS', 'INPUT$', 'INPUTB', 'INPUTB$', 'INPUTBOX',
93 'INSTR', 'INSTRB', 'INSTRREV', 'INT', 'IPMT', 'IRR', 'ISARRAY', 'ISDATE', 'ISEMPTY',
94 'ISERROR', 'ISNULL', 'ISNUMERIC', 'ISOBJECT', 'JOIN', 'LBOUND', 'LCASE', 'LCASE$',
95 'LEFT', 'LEFT$', 'LEFTB', 'LEFTB$', 'LENB', 'LINEINPUT', 'LOC', 'LOF', 'LOG', 'LTRIM',
96 'LTRIM$', 'MID$', 'MIDB', 'MIDB$', 'MINUTE', 'MIRR', 'MKDIR', 'MONTH', 'MONTHNAME',
97 'MSGBOX', 'NOW', 'NPER', 'NPV', 'OCT', 'OCT$', 'PARTITION', 'PMT', 'PPMT', 'PV',
98 'RATE', 'REPLACE', 'RIGHT', 'RIGHT$', 'RIGHTB', 'RIGHTB$', 'RMDIR', 'RND', 'RTRIM',
99 'RTRIM$', 'SECOND', 'SIN', 'SLN', 'SPACE', 'SPACE$', 'SPC', 'SPLIT', 'SQRT', 'STR', 'STR$',
100 'STRCOMP', 'STRCONV', 'STRING$', 'STRREVERSE', 'SYD', 'TAB', 'TAN', 'TIMEOFDAY',
101 'TIMER', 'TIMESERIAL', 'TIMEVALUE', 'TODAY', 'TRIM', 'TRIM$', 'TYPENAME', 'UBOUND',
102 'UCASE', 'UCASE$', 'VAL', 'WEEKDAY', 'WEEKDAYNAME', 'YEAR'
106 '+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!',
107 '(', ')', '{', '}', '.'
109 'CASE_SENSITIVE' => array(
110 GESHI_COMMENTS
=> false,
120 1 => 'color: #0000FF; font-weight: bold;', //Keywords
121 2 => 'color: #6a5acd;', //primitive Data Types
122 3 => 'color: #6a5acd; font-weight: bold;', //preprocessor-commands
123 4 => 'color: #cd6a5a;', //Constants
124 5 => 'color: #cd6a5a; font-weight: bold;', //LinQ
125 7 => 'color: #000066;', //Built-in functions
128 1 => 'color: #008000; font-style: italic;',
129 'MULTI' => 'color: #008000; font-style: italic;'
131 'ESCAPE_CHAR' => array(
132 0 => 'color: #008080; font-weight: bold;'
135 0 => 'color: #000000;'
138 0 => 'color: #a52a2a; back-color: #fffacd;'
141 0 => 'color: #a52a2a; back-color: #fffacd;'
144 1 => 'color: #000000;'
147 0 => 'color: #000000;'
157 3 => 'http://www.google.com/search?q={FNAMEU}+site:msdn.microsoft.com',
160 7 => 'http://www.google.com/search?q={FNAMEU}+site:msdn.microsoft.com'
163 'OBJECT_SPLITTERS' => array(
168 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
169 'SCRIPT_DELIMITERS' => array(
171 'HIGHLIGHT_STRICT_BLOCK' => array(
173 'PARSER_CONTROL' => array(
176 'DISALLOWED_AFTER' => '(?!\w)(?=\s*\()'