https://wild-cards.net/wc/wp-content/plugins/syntaxhighlighter/syn…/scripts/shBrushVb.js?ver=2.1.364
1/** 2 * SyntaxHighlighter 3 * http://alexgorbatchev.com/ 4 * 5 * SyntaxHighlighter is donationware. If you are using it, please donate. 6 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 * 8 * @version 9 * 2.1.364 (October 15 2009) 10 * 11 * @copyright 12 * Copyright (C) 2004-2009 Alex Gorbatchev. 13 * 14 * @license 15 * This file is part of SyntaxHighlighter. 16 * 17 * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 * it under the terms of the GNU Lesser General Public License as published by 19 * the Free Software Foundation, either version 3 of the License, or 20 * (at your option) any later version. 21 * 22 * SyntaxHighlighter is distributed in the hope that it will be useful, 23 * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 * GNU General Public License for more details. 26 * 27 * You should have received a copy of the GNU General Public License 28 * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>. 29 */ 30SyntaxHighlighter.brushes.Vb = function() 31{ 32 var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' + 33 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' + 34 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' + 35 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' + 36 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' + 37 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' + 38 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' + 39 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' + 40 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' + 41 'Overloads Overridable Overrides ParamArray Preserve Private Property ' + 42 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' + 43 'Return Select Set Shadows Shared Short Single Static Step Stop String ' + 44 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' + 45 'Variant When While With WithEvents WriteOnly Xor'; 46 47 this.regexList = [ 48 { regex: /'.*$/gm, css: 'comments' }, // one line comments 49 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 50 { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 51 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword 52 ]; 53 54 this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 55}; 56 57SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter(); 58SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet'];
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.