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