1<?php 2/************************************************************************************* 3 * vbnet.php 4 * --------- 5 * Author: Alan Juden (alan@judenware.org) 6 * Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter) 7 * Release Version: 1.0.9.1 8 * Date Started: 2004/06/04 9 * 10 * VB.NET language file for GeSHi. 11 * 12 * CHANGES 13 * ------- 14 * 2004/11/27 (1.0.0) 15 * - Initial release 16 * 17 * TODO (updated 2004/11/27) 18 * ------------------------- 19 * 20 ************************************************************************************* 21 * 22 * This file is part of GeSHi. 23 * 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. 28 * 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. 33 * 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 37 * 38 ************************************************************************************/ 39 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('"'), 46 'ESCAPE_CHAR' => '', 47 'KEYWORDS' => array( 48 //Keywords 49 1 => array( 50 'AddHandler', 'AddressOf', 'Alias', 'And', 'AndAlso', 'As', 'ByRef', 'ByVal', 51 'Call', 'Case', 'Catch', 'Char', 'Class', 'Const', 'Continue', 52 'Declare', 'Default', 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' 64 ), 65 //Data Types 66 2 => array( 67 'Boolean', 'Byte', 'Date', 'Decimal', 'Double', 'Integer', 'Long', 'Object', 68 'SByte', 'Short', 'Single', 'String', 'UInteger', 'ULong', 'UShort' 69 ), 70 //Compiler Directives 71 3 => array( 72 '#Const', '#Else', '#ElseIf', '#End', '#If' 73 ), 74 //Constants 75 4 => array( 76 'CBool', 'CByte', 'CChar', 'CChr', 'CDate', 'CDbl', 'CDec','CInt', 'CLng', 'CLng8', 'CObj', 'CSByte', 'CShort', 77 'CSng', 'CStr', 'CType', 'CUInt', 'CULng', 'CUShort' 78 ), 79 //Linq 80 5 => array( 81 'By','From','Group','Where' 82 ), 83 //Built-in functions 84 7 => array( 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' 103 ), 104 ), 105 'SYMBOLS' => array( 106 '+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', 107 '(', ')', '{', '}', '.' 108 ), 109 'CASE_SENSITIVE' => array( 110 GESHI_COMMENTS => false, 111 1 => false, 112 2 => false, 113 3 => false, 114 4 => false, 115 5 => false, 116 7 => false 117 ), 118 'STYLES' => array( 119 'KEYWORDS' => array( 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 126 ), 127 'COMMENTS' => array( 128 1 => 'color: #008000; font-style: italic;', 129 'MULTI' => 'color: #008000; font-style: italic;' 130 ), 131 'ESCAPE_CHAR' => array( 132 0 => 'color: #008080; font-weight: bold;' 133 ), 134 'BRACKETS' => array( 135 0 => 'color: #000000;' 136 ), 137 'STRINGS' => array( 138 0 => 'color: #a52a2a; back-color: #fffacd;' 139 ), 140 'NUMBERS' => array( 141 0 => 'color: #a52a2a; back-color: #fffacd;' 142 ), 143 'METHODS' => array( 144 1 => 'color: #000000;' 145 ), 146 'SYMBOLS' => array( 147 0 => 'color: #000000;' 148 ), 149 'REGEXPS' => array( 150 ), 151 'SCRIPT' => array( 152 ) 153 ), 154 'URLS' => array( 155 1 => '', 156 2 => '', 157 3 => 'http://www.google.com/search?q={FNAMEU}+site:msdn.microsoft.com', 158 4 => '', 159 5 => '', 160 7 => 'http://www.google.com/search?q={FNAMEU}+site:msdn.microsoft.com' 161 ), 162 'OOLANG' => true, 163 'OBJECT_SPLITTERS' => array( 164 1 =>'.' 165 ), 166 'REGEXPS' => array( 167 ), 168 'STRICT_MODE_APPLIES' => GESHI_NEVER, 169 'SCRIPT_DELIMITERS' => array( 170 ), 171 'HIGHLIGHT_STRICT_BLOCK' => array( 172 ), 173 'PARSER_CONTROL' => array( 174 'KEYWORDS' => array( 175 7 => array( 176 'DISALLOWED_AFTER' => '(?!\w)(?=\s*\()' 177 ) 178 ) 179 ) 180); 181