annotate runtime/syntax/vb.vim @ 92:a9e90b3356b6 v7.0036

updated for version 7.0036
author vimboss
date Sun, 09 Jan 2005 21:23:56 +0000
parents 3fc0f57ecb91
children 2ad54fcf37e3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Visual Basic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Tim Chase <vb.vim@tim.thechases.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Former Maintainer: Robert M. Cortopassi <cortopar@mindspring.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " (tried multiple times to contact, but email bounced)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Last Change: 2004 May 25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " 2004 May 30 Added a few keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " This was thrown together after seeing numerous requests on the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " VIM and VIM-DEV mailing lists. It is by no means complete.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Send comments, suggestions and requests to the maintainer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " VB is case insensitive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword vbStatement Alias AppActivate As Base Beep Call Case
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword vbStatement ChDir ChDrive Const Declare DefBool DefByte
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword vbStatement DefCur DefDate DefDbl DefDec DefInt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword vbStatement DefLng DefObj DefSng DefStr Deftype
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword vbStatement DefVar DeleteSetting Dim Do Each Else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword vbStatement ElseIf End Enum Erase Event Exit Explicit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword vbStatement FileCopy For ForEach Function Get GoSub
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword vbStatement GoTo If Implements Kill Let Lib LineInput
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword vbStatement Lock Loop LSet MkDir Name Next OnError On
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword vbStatement Option Preserve Private Property Public Put
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword vbStatement RaiseEvent Randomize ReDim Reset Resume
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword vbStatement Return RmDir RSet SavePicture SaveSetting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword vbStatement SendKeys Select SetAttr Static Step Sub
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword vbStatement Then Type Unlock Until Wend While Width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword vbStatement With Write
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword vbFunction Abs Array Asc AscB AscW Atn Avg CBool
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword vbFunction CByte CCur CDate CDbl Cdec Choose Chr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword vbFunction ChrB ChrW CInt CLng Command Cos Count
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword vbFunction CreateObject CSng CStr CurDir CVar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword vbFunction CVDate CVErr DateAdd DateDiff DatePart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword vbFunction DateSerial DateValue Day DDB Dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword vbFunction DoEvents Environ EOF Error Exp FileAttr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword vbFunction FileDateTime FileLen Fix Format FreeFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword vbFunction FV GetAllStrings GetAttr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword vbFunction GetAutoServerSettings GetObject
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword vbFunction GetSetting Hex Hour IIf IMEStatus Input
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword vbFunction InputB InputBox InStr InstB Int IPmt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword vbFunction IsArray IsDate IsEmpty IsError IsMissing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword vbFunction IsNull IsNumeric IsObject LBound LCase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword vbFunction Left LeftB Len LenB LoadPicture Loc LOF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword vbFunction Log LTrim Max Mid MidB Min Minute MIRR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword vbFunction Month MsgBox Now NPer NPV Oct Partition
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword vbFunction Pmt PPmt PV QBColor Rate RGB Right
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword vbFunction RightB Rnd RTrim Second Seek Sgn Shell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword vbFunction Sin SLN Space Spc Sqr StDev StDevP Str
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword vbFunction StrComp StrConv String Switch Sum SYD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword vbFunction Tab Tan Time Timer TimeSerial TimeValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword vbFunction Trim TypeName UBound UCase Val Var VarP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword vbFunction VarType Weekday Year
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword vbMethods Accept Activate Add AddCustom AddFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword vbMethods AddFromFile AddFromTemplate AddItem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword vbMethods AddNew AddToAddInToolbar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword vbMethods AddToolboxProgID Append AppendChunk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword vbMethods Arrange Assert AsyncRead BatchUpdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword vbMethods BeginTrans Bind Cancel CancelAsyncRead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword vbMethods CancelBatch CancelUpdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword vbMethods CanPropertyChange CaptureImage CellText
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword vbMethods CellValue Circle Clear ClearFields
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword vbMethods ClearSel ClearSelCols Clone Close Cls
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword vbMethods ColContaining ColumnSize CommitTrans
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword vbMethods CompactDatabase Compose Connect Copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword vbMethods CopyQueryDef CreateDatabase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword vbMethods CreateDragImage CreateEmbed CreateField
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword vbMethods CreateGroup CreateIndex CreateLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword vbMethods CreatePreparedStatement CreatePropery
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword vbMethods CreateQuery CreateQueryDef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword vbMethods CreateRelation CreateTableDef CreateUser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword vbMethods CreateWorkspace Customize Delete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword vbMethods DeleteColumnLabels DeleteColumns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword vbMethods DeleteRowLabels DeleteRows DoVerb Drag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword vbMethods Draw Edit EditCopy EditPaste EndDoc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword vbMethods EnsureVisible EstablishConnection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword vbMethods Execute ExtractIcon Fetch FetchVerbs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword vbMethods Files FillCache Find FindFirst FindItem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword vbMethods FindLast FindNext FindPrevious Forward
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword vbMethods GetBookmark GetChunk GetClipString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword vbMethods GetData GetFirstVisible GetFormat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword vbMethods GetHeader GetLineFromChar GetNumTicks
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword vbMethods GetRows GetSelectedPart GetText
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword vbMethods GetVisibleCount GoBack GoForward Hide
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword vbMethods HitTest HoldFields Idle InitializeLabels
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword vbMethods InsertColumnLabels InsertColumns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword vbMethods InsertObjDlg InsertRowLabels InsertRows
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword vbMethods Item KillDoc Layout Line LinkExecute
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword vbMethods LinkPoke LinkRequest LinkSend Listen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword vbMethods LoadFile LoadResData LoadResPicture
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword vbMethods LoadResString LogEvent MakeCompileFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword vbMethods MakeReplica MoreResults Move MoveData
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword vbMethods MoveFirst MoveLast MoveNext MovePrevious
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword vbMethods NavigateTo NewPage NewPassword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword vbMethods NextRecordset OLEDrag OnAddinsUpdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword vbMethods OnConnection OnDisconnection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword vbMethods OnStartupComplete Open OpenConnection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword vbMethods OpenDatabase OpenQueryDef OpenRecordset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword vbMethods OpenResultset OpenURL Overlay
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword vbMethods PaintPicture Paste PastSpecialDlg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword vbMethods PeekData Play Point PopulatePartial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword vbMethods PopupMenu Print PrintForm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn keyword vbMethods PropertyChanged PSet Quit Raise
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword vbMethods RandomDataFill RandomFillColumns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword vbMethods RandomFillRows rdoCreateEnvironment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword vbMethods rdoRegisterDataSource ReadFromFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword vbMethods ReadProperty Rebind ReFill Refresh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword vbMethods RefreshLink RegisterDatabase Reload
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword vbMethods Remove RemoveAddInFromToolbar RemoveItem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword vbMethods Render RepairDatabase Reply ReplyAll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword vbMethods Requery ResetCustom ResetCustomLabel
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn keyword vbMethods ResolveName RestoreToolbar Resync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn keyword vbMethods Rollback RollbackTrans RowBookmark
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn keyword vbMethods RowContaining RowTop Save SaveAs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn keyword vbMethods SaveFile SaveToFile SaveToolbar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn keyword vbMethods SaveToOle1File Scale ScaleX ScaleY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword vbMethods Scroll SelectAll SelectPart SelPrint
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn keyword vbMethods Send SendData Set SetAutoServerSettings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn keyword vbMethods SetData SetFocus SetOption SetSize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn keyword vbMethods SetText SetViewport Show ShowColor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn keyword vbMethods ShowFont ShowHelp ShowOpen ShowPrinter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn keyword vbMethods ShowSave ShowWhatsThis SignOff SignOn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn keyword vbMethods Size Span SplitContaining StartLabelEdit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn keyword vbMethods StartLogging Stop Synchronize TextHeight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn keyword vbMethods TextWidth ToDefaults TwipsToChartPart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn keyword vbMethods TypeByChartType Update UpdateControls
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn keyword vbMethods UpdateRecord UpdateRow Upto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn keyword vbMethods WhatsThisMode WriteProperty ZOrder
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn keyword vbEvents AccessKeyPress AfterAddFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn keyword vbEvents AfterChangeFileName AfterCloseFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn keyword vbEvents AfterColEdit AfterColUpdate AfterDelete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn keyword vbEvents AfterInsert AfterLabelEdit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn keyword vbEvents AfterRemoveFile AfterUpdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn keyword vbEvents AfterWriteFile AmbienChanged
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn keyword vbEvents ApplyChanges Associate AsyncReadComplete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn keyword vbEvents AxisActivated AxisLabelActivated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword vbEvents AxisLabelSelected AxisLabelUpdated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn keyword vbEvents AxisSelected AxisTitleActivated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn keyword vbEvents AxisTitleSelected AxisTitleUpdated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn keyword vbEvents AxisUpdated BeforeClick BeforeColEdit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword vbEvents BeforeColUpdate BeforeConnect
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn keyword vbEvents BeforeDelete BeforeInsert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn keyword vbEvents BeforeLabelEdit BeforeLoadFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword vbEvents BeforeUpdate ButtonClick ButtonCompleted
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword vbEvents ButtonGotFocus ButtonLostFocus Change
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword vbEvents ChartActivated ChartSelected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn keyword vbEvents ChartUpdated Click ColEdit Collapse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn keyword vbEvents ColResize ColumnClick Compare
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword vbEvents ConfigChageCancelled ConfigChanged
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword vbEvents ConnectionRequest DataArrival
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn keyword vbEvents DataChanged DataUpdated DblClick
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn keyword vbEvents Deactivate DeviceArrival
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn keyword vbEvents DeviceOtherEvent DeviceQueryRemove
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn keyword vbEvents DeviceQueryRemoveFailed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn keyword vbEvents DeviceRemoveComplete DeviceRemovePending
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn keyword vbEvents DevModeChange Disconnect DisplayChanged
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn keyword vbEvents Dissociate DoGetNewFileName Done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn keyword vbEvents DonePainting DownClick DragDrop DragOver
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 syn keyword vbEvents DropDown EditProperty EnterCell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn keyword vbEvents EnterFocus ExitFocus Expand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn keyword vbEvents FootnoteActivated FootnoteSelected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn keyword vbEvents FootnoteUpdated GotFocus HeadClick
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn keyword vbEvents InfoMessage Initialize IniProperties
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syn keyword vbEvents ItemActivated ItemAdded ItemCheck
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 syn keyword vbEvents ItemClick ItemReloaded ItemRemoved
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syn keyword vbEvents ItemRenamed ItemSeletected KeyDown
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn keyword vbEvents KeyPress KeyUp LeaveCell LegendActivated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn keyword vbEvents LegendSelected LegendUpdated LinkClose
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn keyword vbEvents LinkError LinkNotify LinkOpen Load
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn keyword vbEvents LostFocus MouseDown MouseMove MouseUp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn keyword vbEvents NodeClick ObjectMove OLECompleteDrag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn keyword vbEvents OLEDragDrop OLEDragOver OLEGiveFeedback
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn keyword vbEvents OLESetData OLEStartDrag OnAddNew OnComm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn keyword vbEvents Paint PanelClick PanelDblClick
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn keyword vbEvents PathChange PatternChange PlotActivated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn keyword vbEvents PlotSelected PlotUpdated PointActivated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn keyword vbEvents PointLabelActivated PointLabelSelected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn keyword vbEvents PointLabelUpdated PointSelected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn keyword vbEvents PointUpdated PowerQuerySuspend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn keyword vbEvents PowerResume PowerStatusChanged
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn keyword vbEvents PowerSuspend QueryChangeConfig
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn keyword vbEvents QueryComplete QueryCompleted
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn keyword vbEvents QueryTimeout QueryUnload ReadProperties
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn keyword vbEvents Reposition RequestChangeFileName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn keyword vbEvents RequestWriteFile Resize ResultsChanged
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn keyword vbEvents RowColChange RowCurrencyChange RowResize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn keyword vbEvents RowStatusChanged SelChange
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn keyword vbEvents SelectionChanged SendComplete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn keyword vbEvents SendProgress SeriesActivated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 syn keyword vbEvents SeriesSelected SeriesUpdated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 syn keyword vbEvents SettingChanged SplitChange StateChanged
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn keyword vbEvents StatusUpdate SysColorsChanged Terminate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn keyword vbEvents TimeChanged TitleActivated TitleSelected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 syn keyword vbEvents TitleActivated UnboundAddData
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn keyword vbEvents UnboundDeleteRow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn keyword vbEvents UnboundGetRelativeBookmark
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 syn keyword vbEvents UnboundReadData UnboundWriteData Unload
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 syn keyword vbEvents UpClick Updated Validate ValidationError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 syn keyword vbEvents WillAssociate WillChangeData
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 syn keyword vbEvents WillDissociate WillExecute
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 syn keyword vbEvents WillUpdateRows WriteProperties
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 syn keyword vbTypes Boolean Byte Currency Date Decimal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 syn keyword vbTypes Double Empty Integer Long Single String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 syn match vbOperator "[()+.,\-/*=&]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn match vbOperator "[<>]=\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn match vbOperator "<>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn match vbOperator "\s\+_$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 syn keyword vbOperator And Or Not Xor Mod In Is Imp Eqv
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 syn keyword vbOperator To ByVal ByRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 syn keyword vbConst True False Null Nothing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 syn keyword vbTodo contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 "integer number, or floating point number without a dot.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 syn match vbNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 "floating point number, with dot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn match vbNumber "\<\d\+\.\d*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 "floating point number, starting with a dot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn match vbNumber "\.\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 " String and Character contstants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 syn region vbString start=+"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 syn region vbComment start="\<REM\>" end="$" contains=vbTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 syn region vbComment start="'" end="$" contains=vbTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 syn region vbLineNumber start="^\d" end="\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 syn match vbTypeSpecifier "[a-zA-Z0-9][\$%&!#]"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 if version >= 508 || !exists("did_vb_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 let did_vb_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 HiLink vbLineNumber Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 HiLink vbNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 HiLink vbConst Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 HiLink vbError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 HiLink vbStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 HiLink vbString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 HiLink vbComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 HiLink vbTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 HiLink vbFunction Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 HiLink vbMethods PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 HiLink vbEvents Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 HiLink vbTypeSpecifier Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 HiLink vbTypes Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 HiLink vbOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 let b:current_syntax = "vb"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 " vim: ts=8