1" Vim syntax file 2" Language: Visual Basic 3" Maintainer: Tim Chase <[email protected]> 4" Former Maintainer: Robert M. Cortopassi <[email protected]> 5" (tried multiple times to contact, but email bounced) 6" Last Change: 7" 2005 May 25 Synched with work by Thomas Barthel 8" 2004 May 30 Added a few keywords 9 10" This was thrown together after seeing numerous requests on the 11" VIM and VIM-DEV mailing lists. It is by no means complete. 12" Send comments, suggestions and requests to the maintainer. 13 14" quit when a syntax file was already loaded 15if exists("b:current_syntax") 16 finish 17endif 18 19" VB is case insensitive 20syn case ignore 21 22syn keyword vbConditional If Then ElseIf Else Select Case 23 24syn keyword vbOperator AddressOf And ByRef ByVal Eqv Imp In 25syn keyword vbOperator Is Like Mod Not Or To Xor 26 27syn match vbOperator "[()+.,\-/*=&]" 28syn match vbOperator "[<>]=\=" 29syn match vbOperator "<>" 30syn match vbOperator "\s\+_$" 31 32syn keyword vbBoolean True False 33syn keyword vbConst Null Nothing 34 35syn keyword vbRepeat Do For ForEach Loop Next 36syn keyword vbRepeat Step To Until Wend While 37 38syn keyword vbEvents AccessKeyPress Activate ActiveRowChanged 39syn keyword vbEvents AfterAddFile AfterChangeFileName AfterCloseFile 40syn keyword vbEvents AfterColEdit AfterColUpdate AfterDelete 41syn keyword vbEvents AfterInsert AfterLabelEdit AfterRemoveFile 42syn keyword vbEvents AfterUpdate AfterWriteFile AmbientChanged 43syn keyword vbEvents ApplyChanges Associate AsyncProgress 44syn keyword vbEvents AsyncReadComplete AsyncReadProgress AxisActivated 45syn keyword vbEvents AxisLabelActivated AxisLabelSelected 46syn keyword vbEvents AxisLabelUpdated AxisSelected AxisTitleActivated 47syn keyword vbEvents AxisTitleSelected AxisTitleUpdated AxisUpdated 48syn keyword vbEvents BeforeClick BeforeColEdit BeforeColUpdate 49syn keyword vbEvents BeforeConnect BeforeDelete BeforeInsert 50syn keyword vbEvents BeforeLabelEdit BeforeLoadFile BeforeUpdate 51syn keyword vbEvents BeginRequest BeginTrans ButtonClick 52syn keyword vbEvents ButtonCompleted ButtonDropDown ButtonGotFocus 53syn keyword vbEvents ButtonLostFocus CallbackKeyDown Change Changed 54syn keyword vbEvents ChartActivated ChartSelected ChartUpdated Click 55syn keyword vbEvents Close CloseQuery CloseUp ColEdit ColResize 56syn keyword vbEvents Collapse ColumnClick CommitTrans Compare 57syn keyword vbEvents ConfigChageCancelled ConfigChanged 58syn keyword vbEvents ConfigChangedCancelled Connect ConnectionRequest 59syn keyword vbEvents CurrentRecordChanged DECommandAdded 60syn keyword vbEvents DECommandPropertyChanged DECommandRemoved 61syn keyword vbEvents DEConnectionAdded DEConnectionPropertyChanged 62syn keyword vbEvents DEConnectionRemoved DataArrival DataChanged 63syn keyword vbEvents DataUpdated DateClicked DblClick Deactivate 64syn keyword vbEvents DevModeChange DeviceArrival DeviceOtherEvent 65syn keyword vbEvents DeviceQueryRemove DeviceQueryRemoveFailed 66syn keyword vbEvents DeviceRemoveComplete DeviceRemovePending 67syn keyword vbEvents Disconnect DisplayChanged Dissociate 68syn keyword vbEvents DoGetNewFileName Done DonePainting DownClick 69syn keyword vbEvents DragDrop DragOver DropDown EditProperty EditQuery 70syn keyword vbEvents EndRequest EnterCell EnterFocus ExitFocus Expand 71syn keyword vbEvents FontChanged FootnoteActivated FootnoteSelected 72syn keyword vbEvents FootnoteUpdated Format FormatSize GotFocus 73syn keyword vbEvents HeadClick HeightChanged Hide InfoMessage 74syn keyword vbEvents IniProperties InitProperties Initialize 75syn keyword vbEvents ItemActivated ItemAdded ItemCheck ItemClick 76syn keyword vbEvents ItemReloaded ItemRemoved ItemRenamed 77syn keyword vbEvents ItemSeletected KeyDown KeyPress KeyUp LeaveCell 78syn keyword vbEvents LegendActivated LegendSelected LegendUpdated 79syn keyword vbEvents LinkClose LinkError LinkExecute LinkNotify 80syn keyword vbEvents LinkOpen Load LostFocus MouseDown MouseMove 81syn keyword vbEvents MouseUp NodeCheck NodeClick OLECompleteDrag 82syn keyword vbEvents OLEDragDrop OLEDragOver OLEGiveFeedback OLESetData 83syn keyword vbEvents OLEStartDrag ObjectEvent ObjectMove OnAddNew 84syn keyword vbEvents OnComm Paint PanelClick PanelDblClick PathChange 85syn keyword vbEvents PatternChange PlotActivated PlotSelected 86syn keyword vbEvents PlotUpdated PointActivated PointLabelActivated 87syn keyword vbEvents PointLabelSelected PointLabelUpdated PointSelected 88syn keyword vbEvents PointUpdated PowerQuerySuspend PowerResume 89syn keyword vbEvents PowerStatusChanged PowerSuspend ProcessTag 90syn keyword vbEvents ProcessingTimeout QueryChangeConfig QueryClose 91syn keyword vbEvents QueryComplete QueryCompleted QueryTimeout 92syn keyword vbEvents QueryUnload ReadProperties RepeatedControlLoaded 93syn keyword vbEvents RepeatedControlUnloaded Reposition 94syn keyword vbEvents RequestChangeFileName RequestWriteFile Resize 95syn keyword vbEvents ResultsChanged RetainedProject RollbackTrans 96syn keyword vbEvents RowColChange RowCurrencyChange RowResize 97syn keyword vbEvents RowStatusChanged Scroll SelChange SelectionChanged 98syn keyword vbEvents SendComplete SendProgress SeriesActivated 99syn keyword vbEvents SeriesSelected SeriesUpdated SettingChanged Show 100syn keyword vbEvents SplitChange Start StateChanged StatusUpdate 101syn keyword vbEvents SysColorsChanged Terminate TimeChanged Timer 102syn keyword vbEvents TitleActivated TitleSelected TitleUpdated 103syn keyword vbEvents UnboundAddData UnboundDeleteRow 104syn keyword vbEvents UnboundGetRelativeBookmark UnboundReadData 105syn keyword vbEvents UnboundWriteData Unformat Unload UpClick Updated 106syn keyword vbEvents UserEvent Validate ValidationError 107syn keyword vbEvents VisibleRecordChanged WillAssociate WillChangeData 108syn keyword vbEvents WillDissociate WillExecute WillUpdateRows 109syn keyword vbEvents WriteProperties 110 111 112syn keyword vbFunction Abs Array Asc AscB AscW Atn Avg BOF CBool CByte 113syn keyword vbFunction CCur CDate CDbl CInt CLng CSng CStr CVDate CVErr 114syn keyword vbFunction CVar CallByName Cdec Choose Chr ChrB ChrW Command 115syn keyword vbFunction Cos Count CreateObject CurDir DDB Date DateAdd 116syn keyword vbFunction DateDiff DatePart DateSerial DateValue Day Dir 117syn keyword vbFunction DoEvents EOF Environ Error Exp FV FileAttr 118syn keyword vbFunction FileDateTime FileLen FilterFix Fix Format 119syn keyword vbFunction FormatCurrency FormatDateTime FormatNumber 120syn keyword vbFunction FormatPercent FreeFile GetAllStrings GetAttr 121syn keyword vbFunction GetAutoServerSettings GetObject GetSetting Hex 122syn keyword vbFunction Hour IIf IMEStatus IPmt InStr Input InputB 123syn keyword vbFunction InputBox InstrB Int IsArray IsDate IsEmpty IsError 124syn keyword vbFunction IsMissing IsNull IsNumeric IsObject Join LBound 125syn keyword vbFunction LCase LOF LTrim Left LeftB Len LenB LoadPicture 126syn keyword vbFunction LoadResData LoadResPicture LoadResString Loc Log 127syn keyword vbFunction MIRR Max Mid MidB Min Minute Month MonthName 128syn keyword vbFunction MsgBox NPV NPer Now Oct PPmt PV Partition Pmt 129syn keyword vbFunction QBColor RGB RTrim Rate Replace Right RightB Rnd 130syn keyword vbFunction Round SLN SYD Second Seek Sgn Shell Sin Space Spc 131syn keyword vbFunction Split Sqr StDev StDevP Str StrComp StrConv 132syn keyword vbFunction StrReverse String Sum Switch Tab Tan Time 133syn keyword vbFunction TimeSerial TimeValue Timer Trim TypeName UBound 134syn keyword vbFunction UCase Val Var VarP VarType Weekday WeekdayName 135syn keyword vbFunction Year 136 137syn keyword vbMethods AboutBox Accept Activate Add AddCustom AddFile 138syn keyword vbMethods AddFromFile AddFromGuid AddFromString 139syn keyword vbMethods AddFromTemplate AddItem AddNew AddToAddInToolbar 140syn keyword vbMethods AddToolboxProgID Append AppendAppendChunk 141syn keyword vbMethods AppendChunk Arrange Assert AsyncRead BatchUpdate 142syn keyword vbMethods BeginQueryEdit BeginTrans Bind BuildPath 143syn keyword vbMethods CanPropertyChange Cancel CancelAsyncRead 144syn keyword vbMethods CancelBatch CancelUpdate CaptureImage CellText 145syn keyword vbMethods CellValue Circle Clear ClearFields ClearSel 146syn keyword vbMethods ClearSelCols ClearStructure Clone Close Cls 147syn keyword vbMethods ColContaining CollapseAll ColumnSize CommitTrans 148syn keyword vbMethods CompactDatabase Compose Connect Copy CopyFile 149syn keyword vbMethods CopyFolder CopyQueryDef Count CreateDatabase 150syn keyword vbMethods CreateDragImage CreateEmbed CreateField 151syn keyword vbMethods CreateFolder CreateGroup CreateIndex CreateLink 152syn keyword vbMethods CreatePreparedStatement CreatePropery CreateQuery 153syn keyword vbMethods CreateQueryDef CreateRelation CreateTableDef 154syn keyword vbMethods CreateTextFile CreateToolWindow CreateUser 155syn keyword vbMethods CreateWorkspace Customize Cut Delete 156syn keyword vbMethods DeleteColumnLabels DeleteColumns DeleteFile 157syn keyword vbMethods DeleteFolder DeleteLines DeleteRowLabels 158syn keyword vbMethods DeleteRows DeselectAll DesignerWindow DoVerb Drag 159syn keyword vbMethods Draw DriveExists Edit EditCopy EditPaste EndDoc 160syn keyword vbMethods EnsureVisible EstablishConnection Execute Exists 161syn keyword vbMethods Expand Export ExportReport ExtractIcon Fetch 162syn keyword vbMethods FetchVerbs FileExists Files FillCache Find 163syn keyword vbMethods FindFirst FindItem FindLast FindNext FindPrevious 164syn keyword vbMethods FolderExists Forward GetAbsolutePathName 165syn keyword vbMethods GetBaseName GetBookmark GetChunk GetClipString 166syn keyword vbMethods GetData GetDrive GetDriveName GetFile GetFileName 167syn keyword vbMethods GetFirstVisible GetFolder GetFormat GetHeader 168syn keyword vbMethods GetLineFromChar GetNumTicks GetParentFolderName 169syn keyword vbMethods GetRows GetSelectedPart GetSelection 170syn keyword vbMethods GetSpecialFolder GetTempName GetText 171syn keyword vbMethods GetVisibleCount GoBack GoForward Hide HitTest 172syn keyword vbMethods HoldFields Idle Import InitializeLabels Insert 173syn keyword vbMethods InsertColumnLabels InsertColumns InsertFile 174syn keyword vbMethods InsertLines InsertObjDlg InsertRowLabels 175syn keyword vbMethods InsertRows Item Keys KillDoc Layout Line Lines 176syn keyword vbMethods LinkExecute LinkPoke LinkRequest LinkSend Listen 177syn keyword vbMethods LoadFile LoadResData LoadResPicture LoadResString 178syn keyword vbMethods LogEvent MakeCompileFile MakeCompiledFile 179syn keyword vbMethods MakeReplica MoreResults Move MoveData MoveFile 180syn keyword vbMethods MoveFirst MoveFolder MoveLast MoveNext 181syn keyword vbMethods MovePrevious NavigateTo NewPage NewPassword 182syn keyword vbMethods NextRecordset OLEDrag OnAddinsUpdate OnConnection 183syn keyword vbMethods OnDisconnection OnStartupComplete Open 184syn keyword vbMethods OpenAsTextStream OpenConnection OpenDatabase 185syn keyword vbMethods OpenQueryDef OpenRecordset OpenResultset OpenURL 186syn keyword vbMethods Overlay PSet PaintPicture PastSpecialDlg Paste 187syn keyword vbMethods PeekData Play Point PopulatePartial PopupMenu 188syn keyword vbMethods Print PrintForm PrintReport PropertyChanged Quit 189syn keyword vbMethods Raise RandomDataFill RandomFillColumns 190syn keyword vbMethods RandomFillRows ReFill Read ReadAll ReadFromFile 191syn keyword vbMethods ReadLine ReadProperty Rebind Refresh RefreshLink 192syn keyword vbMethods RegisterDatabase ReleaseInstance Reload Remove 193syn keyword vbMethods RemoveAddInFromToolbar RemoveAll RemoveItem Render 194syn keyword vbMethods RepairDatabase ReplaceLine Reply ReplyAll Requery 195syn keyword vbMethods ResetCustom ResetCustomLabel ResolveName 196syn keyword vbMethods RestoreToolbar Resync Rollback RollbackTrans 197syn keyword vbMethods RowBookmark RowContaining RowTop Save SaveAs 198syn keyword vbMethods SaveFile SaveToFile SaveToOle1File SaveToolbar 199syn keyword vbMethods Scale ScaleX ScaleY Scroll SelPrint SelectAll 200syn keyword vbMethods SelectPart Send SendData Set SetAutoServerSettings 201syn keyword vbMethods SetData SetFocus SetOption SetSelection SetSize 202syn keyword vbMethods SetText SetViewport Show ShowColor ShowFont 203syn keyword vbMethods ShowHelp ShowOpen ShowPrinter ShowSave 204syn keyword vbMethods ShowWhatsThis SignOff SignOn Size Skip SkipLine 205syn keyword vbMethods Span Split SplitContaining StartLabelEdit 206syn keyword vbMethods StartLogging Stop Synchronize Tag TextHeight 207syn keyword vbMethods TextWidth ToDefaults Trace TwipsToChartPart 208syn keyword vbMethods TypeByChartType URLFor Update UpdateControls 209syn keyword vbMethods UpdateRecord UpdateRow Upto ValidateControls Value 210syn keyword vbMethods WhatsThisMode Write WriteBlankLines WriteLine 211syn keyword vbMethods WriteProperty WriteTemplate ZOrder 212syn keyword vbMethods rdoCreateEnvironment rdoRegisterDataSource 213 214syn keyword vbStatement Alias AppActivate As Base Beep Begin Call ChDir 215syn keyword vbStatement ChDrive Close Const Date Declare DefBool DefByte 216syn keyword vbStatement DefCur DefDate DefDbl DefDec DefInt DefLng DefObj 217syn keyword vbStatement DefSng DefStr DefVar Deftype DeleteSetting Dim Do 218syn keyword vbStatement Each ElseIf End Enum Erase Error Event Exit 219syn keyword vbStatement Explicit FileCopy For ForEach Function Get GoSub 220syn keyword vbStatement GoTo Gosub Implements Kill LSet Let Lib LineInput 221syn keyword vbStatement Load Lock Loop Mid MkDir Name Next On OnError Open 222syn keyword vbStatement Option Preserve Private Property Public Put RSet 223syn keyword vbStatement RaiseEvent Randomize ReDim Redim Reset Resume 224syn keyword vbStatement Return RmDir SavePicture SaveSetting Seek SendKeys 225syn keyword vbStatement Sendkeys Set SetAttr Static Step Stop Sub Time 226syn keyword vbStatement Type Unload Unlock Until Wend While Width With 227syn keyword vbStatement Write 228 229syn keyword vbKeyword As Binary ByRef ByVal Date Empty Error Friend Get 230syn keyword vbKeyword Input Is Len Lock Me Mid New Nothing Null On 231syn keyword vbKeyword Option Optional ParamArray Print Private Property 232syn keyword vbKeyword Public PublicNotCreateable OnNewProcessSingleUse 233syn keyword vbKeyword InSameProcessMultiUse GlobalMultiUse Resume Seek 234syn keyword vbKeyword Set Static Step String Time WithEvents 235 236syn keyword vbTodo contained TODO 237 238"Datatypes 239syn keyword vbTypes Boolean Byte Currency Date Decimal Double Empty 240syn keyword vbTypes Integer Long Object Single String Variant 241 242"VB defined values 243syn keyword vbDefine dbBigInt dbBinary dbBoolean dbByte dbChar 244syn keyword vbDefine dbCurrency dbDate dbDecimal dbDouble dbFloat 245syn keyword vbDefine dbGUID dbInteger dbLong dbLongBinary dbMemo 246syn keyword vbDefine dbNumeric dbSingle dbText dbTime dbTimeStamp 247syn keyword vbDefine dbVarBinary 248 249"VB defined values 250syn keyword vbDefine vb3DDKShadow vb3DFace vb3DHighlight vb3DLight 251syn keyword vbDefine vb3DShadow vbAbort vbAbortRetryIgnore 252syn keyword vbDefine vbActiveBorder vbActiveTitleBar vbAlias 253syn keyword vbDefine vbApplicationModal vbApplicationWorkspace 254syn keyword vbDefine vbAppTaskManager vbAppWindows vbArchive vbArray 255syn keyword vbDefine vbBack vbBinaryCompare vbBlack vbBlue vbBoolean 256syn keyword vbDefine vbButtonFace vbButtonShadow vbButtonText vbByte 257syn keyword vbDefine vbCalGreg vbCalHijri vbCancel vbCr vbCritical 258syn keyword vbDefine vbCrLf vbCurrency vbCyan vbDatabaseCompare 259syn keyword vbDefine vbDataObject vbDate vbDecimal vbDefaultButton1 260syn keyword vbDefine vbDefaultButton2 vbDefaultButton3 vbDefaultButton4 261syn keyword vbDefine vbDesktop vbDirectory vbDouble vbEmpty vbError 262syn keyword vbDefine vbExclamation vbFirstFourDays vbFirstFullWeek 263syn keyword vbDefine vbFirstJan1 vbFormCode vbFormControlMenu 264syn keyword vbDefine vbFormFeed vbFormMDIForm vbFriday vbFromUnicode 265syn keyword vbDefine vbGrayText vbGreen vbHidden vbHide vbHighlight 266syn keyword vbDefine vbHighlightText vbHiragana vbIgnore vbIMEAlphaDbl 267syn keyword vbDefine vbIMEAlphaSng vbIMEDisable vbIMEHiragana 268syn keyword vbDefine vbIMEKatakanaDbl vbIMEKatakanaSng vbIMEModeAlpha 269syn keyword vbDefine vbIMEModeAlphaFull vbIMEModeDisable 270syn keyword vbDefine vbIMEModeHangul vbIMEModeHangulFull 271syn keyword vbDefine vbIMEModeHiragana vbIMEModeKatakana 272syn keyword vbDefine vbIMEModeKatakanaHalf vbIMEModeNoControl 273syn keyword vbDefine vbIMEModeOff vbIMEModeOn vbIMENoOp vbIMEOff 274syn keyword vbDefine vbIMEOn vbInactiveBorder vbInactiveCaptionText 275syn keyword vbDefine vbInactiveTitleBar vbInfoBackground vbInformation 276syn keyword vbDefine vbInfoText vbInteger vbKatakana vbKey0 vbKey1 277syn keyword vbDefine vbKey2 vbKey3 vbKey4 vbKey5 vbKey6 vbKey7 vbKey8 278syn keyword vbDefine vbKey9 vbKeyA vbKeyAdd vbKeyB vbKeyBack vbKeyC 279syn keyword vbDefine vbKeyCancel vbKeyCapital vbKeyClear vbKeyControl 280syn keyword vbDefine vbKeyD vbKeyDecimal vbKeyDelete vbKeyDivide 281syn keyword vbDefine vbKeyDown vbKeyE vbKeyEnd vbKeyEscape vbKeyExecute 282syn keyword vbDefine vbKeyF vbKeyF1 vbKeyF10 vbKeyF11 vbKeyF12 vbKeyF13 283syn keyword vbDefine vbKeyF14 vbKeyF15 vbKeyF16 vbKeyF2 vbKeyF3 vbKeyF4 284syn keyword vbDefine vbKeyF5 vbKeyF6 vbKeyF7 vbKeyF8 vbKeyF9 vbKeyG 285syn keyword vbDefine vbKeyH vbKeyHelp vbKeyHome vbKeyI vbKeyInsert 286syn keyword vbDefine vbKeyJ vbKeyK vbKeyL vbKeyLButton vbKeyLeft vbKeyM 287syn keyword vbDefine vbKeyMButton vbKeyMenu vbKeyMultiply vbKeyN 288syn keyword vbDefine vbKeyNumlock vbKeyNumpad0 vbKeyNumpad1 289syn keyword vbDefine vbKeyNumpad2 vbKeyNumpad3 vbKeyNumpad4 290syn keyword vbDefine vbKeyNumpad5 vbKeyNumpad6 vbKeyNumpad7 291syn keyword vbDefine vbKeyNumpad8 vbKeyNumpad9 vbKeyO vbKeyP 292syn keyword vbDefine vbKeyPageDown vbKeyPageUp vbKeyPause vbKeyPrint 293syn keyword vbDefine vbKeyQ vbKeyR vbKeyRButton vbKeyReturn vbKeyRight 294syn keyword vbDefine vbKeyS vbKeySelect vbKeySeparator vbKeyShift 295syn keyword vbDefine vbKeySnapshot vbKeySpace vbKeySubtract vbKeyT 296syn keyword vbDefine vbKeyTab vbKeyU vbKeyUp vbKeyV vbKeyW vbKeyX 297syn keyword vbDefine vbKeyY vbKeyZ vbLf vbLong vbLowerCase vbMagenta 298syn keyword vbDefine vbMaximizedFocus vbMenuBar vbMenuText 299syn keyword vbDefine vbMinimizedFocus vbMinimizedNoFocus vbMonday 300syn keyword vbDefine vbMsgBox vbMsgBoxHelpButton vbMsgBoxRight 301syn keyword vbDefine vbMsgBoxRtlReading vbMsgBoxSetForeground 302syn keyword vbDefine vbMsgBoxText vbNarrow vbNewLine vbNo vbNormal 303syn keyword vbDefine vbNormalFocus vbNormalNoFocus vbNull vbNullChar 304syn keyword vbDefine vbNullString vbObject vbObjectError vbOK 305syn keyword vbDefine vbOKCancel vbOKOnly vbProperCase vbQuestion 306syn keyword vbDefine vbReadOnly vbRed vbRetry vbRetryCancel vbSaturday 307syn keyword vbDefine vbScrollBars vbSingle vbString vbSunday vbSystem 308syn keyword vbDefine vbSystemModal vbTab vbTextCompare vbThursday 309syn keyword vbDefine vbTitleBarText vbTuesday vbUnicode vbUpperCase 310syn keyword vbDefine vbUseSystem vbUseSystemDayOfWeek vbVariant 311syn keyword vbDefine vbVerticalTab vbVolume vbWednesday vbWhite vbWide 312syn keyword vbDefine vbWindowBackground vbWindowFrame vbWindowText 313syn keyword vbDefine vbYellow vbYes vbYesNo vbYesNoCancel 314 315"Numbers 316"integer number, or floating point number without a dot. 317syn match vbNumber "\<\d\+\>" 318"floating point number, with dot 319syn match vbNumber "\<\d\+\.\d*\>" 320"floating point number, starting with a dot 321syn match vbNumber "\.\d\+\>" 322"syn match vbNumber "{[[:xdigit:]-]\+}\|&[hH][[:xdigit:]]\+&" 323"syn match vbNumber ":[[:xdigit:]]\+" 324"syn match vbNumber "[-+]\=\<\d\+\>" 325syn match vbFloat "[-+]\=\<\d\+[eE][\-+]\=\d\+" 326syn match vbFloat "[-+]\=\<\d\+\.\d*\([eE][\-+]\=\d\+\)\=" 327syn match vbFloat "[-+]\=\<\.\d\+\([eE][\-+]\=\d\+\)\=" 328 329" String and Character contstants 330syn region vbString start=+"+ end=+"\|$+ 331syn region vbComment start="\(^\|\s\)REM\s" end="$" contains=vbTodo 332syn region vbComment start="\(^\|\s\)\'" end="$" contains=vbTodo 333syn match vbLineNumber "^\d\+\(\s\|$\)" 334syn match vbTypeSpecifier "[a-zA-Z0-9][\$%&!#]"ms=s+1 335syn match vbTypeSpecifier "#[a-zA-Z0-9]"me=e-1 336 337" Define the default highlighting. 338" Only when an item doesn't have highlighting yet 339 340hi def link vbBoolean Boolean 341hi def link vbLineNumber Comment 342hi def link vbComment Comment 343hi def link vbConditional Conditional 344hi def link vbConst Constant 345hi def link vbDefine Constant 346hi def link vbError Error 347hi def link vbFunction Identifier 348hi def link vbIdentifier Identifier 349hi def link vbNumber Number 350hi def link vbFloat Float 351hi def link vbMethods PreProc 352hi def link vbOperator Operator 353hi def link vbRepeat Repeat 354hi def link vbString String 355hi def link vbStatement Statement 356hi def link vbKeyword Statement 357hi def link vbEvents Special 358hi def link vbTodo Todo 359hi def link vbTypes Type 360hi def link vbTypeSpecifier Type 361 362 363let b:current_syntax = "vb" 364 365" vim: ts=8 366