Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added VB 2015 (VB 14) keywords. #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions brush.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,7 @@ var BrushBase = require('brush-base');
var regexLib = require('syntaxhighlighter-regex').commonRegExp;

function Brush() {
var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
'Variant When While With WithEvents WriteOnly Xor';
var keywords = 'AddHandler AddressOf Aggregate Alias And AndAlso Ansi As Assembly Async Auto Await Binary Boolean By ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate CDbl CDec Char CInt Class CLng CObj Compare Const Continue CSByte CShort CSng CStr CType CUInt CULng CUShort Date Decimal Declare Default Delegate Dim DirectCast Distinct Do Double Each Else ElseIf End EndIf Enum Equals Erase Error Event Exit Explicit False Finally For Friend From Function Get GetType GetXMLNamespace Global GoSub GoTo Group Handles If Implements Imports In Inherits Integer Interface Into Is IsFalse IsNot IsTrue Iterator Join Key Let Lib Like Long Loop Me Mid Mod Module MustInherit MustOverride MyBase MyClass NameOf Namespace Narrowing New Next Not Nothing NotInheritable NotOverridable Object Of Off On Operator Option Optional Or Order OrElse Out Overloads Overridable Overrides ParamArray Partial Preserve Private Property Protected Public RaiseEvent ReadOnly ReDim Region REM RemoveHandler Resume Return SByte Select Set Shadows Shared Short Single Skip Static Step Stop Strict String Structure Sub SyncLock Take Text Then Throw To True Try TryCast TypeOf UInteger ULong Unicode Until UShort Using Variant Wend When Where While Widening With WithEvents WriteOnly Xor Yield';

this.regexList = [
{
Expand All @@ -41,4 +28,4 @@ function Brush() {

Brush.prototype = new BrushBase();
Brush.aliases = ['vb', 'vbnet'];
module.exports = Brush;
module.exports = Brush;