annotate runtime/syntax/aspvbs.vim @ 15458:0f8065d7d68c v8.1.0737

patch 8.1.0737: compiler warning for uninitialized variable commit https://github.com/vim/vim/commit/e519dfd7139d504ada44031a986482ac4fb1229a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 13 15:42:02 2019 +0100 patch 8.1.0737: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. Solution: Add initialization. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jan 2019 15:45:07 +0100
parents 46763b01cd9a
children 11b656e74444
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: Microsoft VBScript Web Content (ASP)
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
3 " Maintainer: Devin Weaver <ktohg@tritarget.com> (non-functional)
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
4 " URL: http://tritarget.com/pub/vim/syntax/aspvbs.vim (broken)
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 22
diff changeset
5 " Last Change: 2006 Jun 19
e63691e7c504 updated for version 7.1a
vimboss
parents: 22
diff changeset
6 " by Dan Casey
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1121
diff changeset
7 " Version: $Revision: 1.3 $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Thanks to Jay-Jay <vim@jay-jay.net> for a syntax sync hack, hungarian
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " notation, and extra highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " Thanks to patrick dehne <patrick@steidle.net> for the folding code.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Thanks to Dean Hall <hall@apt7.com> for testing the use of classes in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " VBScripts which I've been too scared to do.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2034
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: 2034
diff changeset
15 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 if !exists("main_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 let main_syntax = 'aspvbs'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2034
diff changeset
23 runtime! syntax/html.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn cluster htmlPreProc add=AspVBScriptInsideHtmlTags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " Colored variable names, if written in hungarian notation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 hi def AspVBSVariableSimple term=standout ctermfg=3 guifg=#99ee99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 hi def AspVBSVariableComplex term=standout ctermfg=3 guifg=#ee9900
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match AspVBSVariableSimple contained "\<\(bln\|byt\|dtm\=\|dbl\|int\|str\)\u\w*"
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 22
diff changeset
33 syn match AspVBSVariableComplex contained "\<\(arr\|ary\|obj\)\u\w*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Functions and methods that are in VB but will cause errors in an ASP page
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " This is helpfull if your porting VB code to ASP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " I removed (Count, Item) because these are common variable names in AspVBScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword AspVBSError contained Val Str CVar CVDate DoEvents GoSub Return GoTo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword AspVBSError contained Stop LinkExecute Add Type LinkPoke
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword AspVBSError contained LinkRequest LinkSend Declare Optional Sleep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword AspVBSError contained ParamArray Static Erl TypeOf Like LSet RSet Mid StrConv
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " It may seem that most of these can fit into a keyword clause but keyword takes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " priority over all so I can't get the multi-word matches
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match AspVBSError contained "\<Def[a-zA-Z0-9_]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match AspVBSError contained "^\s*Open\s\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match AspVBSError contained "Debug\.[a-zA-Z0-9_]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match AspVBSError contained "^\s*[a-zA-Z0-9_]\+:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match AspVBSError contained "[a-zA-Z0-9_]\+![a-zA-Z0-9_]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match AspVBSError contained "^\s*#.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match AspVBSError contained "\<As\s\+[a-zA-Z0-9_]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match AspVBSError contained "\<End\>\|\<Exit\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match AspVBSError contained "\<On\s\+Error\>\|\<On\>\|\<Error\>\|\<Resume\s\+Next\>\|\<Resume\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match AspVBSError contained "\<Option\s\+\(Base\|Compare\|Private\s\+Module\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " This one I want 'cause I always seem to mis-spell it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match AspVBSError contained "Respon\?ce\.\S*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match AspVBSError contained "Respose\.\S*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " When I looked up the VBScript syntax it mentioned that Property Get/Set/Let
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " statements are illegal, however, I have recived reports that they do work.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " So I commented it out for now.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " syn match AspVBSError contained "\<Property\s\+\(Get\|Let\|Set\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " AspVBScript Reserved Words.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match AspVBSStatement contained "\<On\s\+Error\s\+\(Resume\s\+Next\|goto\s\+0\)\>\|\<Next\>"
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 22
diff changeset
65 syn match AspVBSStatement contained "\<End\s\+\(If\|For\|Select\|Class\|Function\|Sub\|With\|Property\)\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match AspVBSStatement contained "\<Exit\s\+\(Do\|For\|Sub\|Function\)\>"
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 22
diff changeset
67 syn match AspVBSStatement contained "\<Exit\s\+\(Do\|For\|Sub\|Function\|Property\)\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match AspVBSStatement contained "\<Option\s\+Explicit\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match AspVBSStatement contained "\<For\s\+Each\>\|\<For\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match AspVBSStatement contained "\<Set\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword AspVBSStatement contained Call Class Const Default Dim Do Loop Erase And
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword AspVBSStatement contained Function If Then Else ElseIf Or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword AspVBSStatement contained Private Public Randomize ReDim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword AspVBSStatement contained Select Case Sub While With Wend Not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " AspVBScript Functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword AspVBSFunction contained Abs Array Asc Atn CBool CByte CCur CDate CDbl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword AspVBSFunction contained Chr CInt CLng Cos CreateObject CSng CStr Date
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword AspVBSFunction contained DateAdd DateDiff DatePart DateSerial DateValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword AspVBSFunction contained Date Day Exp Filter Fix FormatCurrency
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword AspVBSFunction contained FormatDateTime FormatNumber FormatPercent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword AspVBSFunction contained GetObject Hex Hour InputBox InStr InStrRev Int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword AspVBSFunction contained IsArray IsDate IsEmpty IsNull IsNumeric
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword AspVBSFunction contained IsObject Join LBound LCase Left Len LoadPicture
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword AspVBSFunction contained Log LTrim Mid Minute Month MonthName MsgBox Now
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword AspVBSFunction contained Oct Replace RGB Right Rnd Round RTrim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword AspVBSFunction contained ScriptEngine ScriptEngineBuildVersion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword AspVBSFunction contained ScriptEngineMajorVersion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword AspVBSFunction contained ScriptEngineMinorVersion Second Sgn Sin Space
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword AspVBSFunction contained Split Sqr StrComp StrReverse String Tan Time Timer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword AspVBSFunction contained TimeSerial TimeValue Trim TypeName UBound UCase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword AspVBSFunction contained VarType Weekday WeekdayName Year
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 " AspVBScript Methods
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword AspVBSMethods contained Add AddFolders BuildPath Clear Close Copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword AspVBSMethods contained CopyFile CopyFolder CreateFolder CreateTextFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword AspVBSMethods contained Delete DeleteFile DeleteFolder DriveExists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword AspVBSMethods contained Exists FileExists FolderExists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword AspVBSMethods contained GetAbsolutePathName GetBaseName GetDrive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword AspVBSMethods contained GetDriveName GetExtensionName GetFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword AspVBSMethods contained GetFileName GetFolder GetParentFolderName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword AspVBSMethods contained GetSpecialFolder GetTempName Items Keys Move
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword AspVBSMethods contained MoveFile MoveFolder OpenAsTextStream
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword AspVBSMethods contained OpenTextFile Raise Read ReadAll ReadLine Remove
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword AspVBSMethods contained RemoveAll Skip SkipLine Write WriteBlankLines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword AspVBSMethods contained WriteLine
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
107 syn match AspVBSMethods contained "Response\.\w*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " Colorize boolean constants:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword AspVBSMethods contained true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 " AspVBScript Number Contstants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 " Integer number, or floating point number without a dot.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn match AspVBSNumber contained "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 " Floating point number, with dot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn match AspVBSNumber contained "\<\d\+\.\d*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 " Floating point number, starting with a dot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn match AspVBSNumber contained "\.\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 " String and Character Contstants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 " removed (skip=+\\\\\|\\"+) because VB doesn't have backslash escaping in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 " strings (or does it?)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn region AspVBSString contained start=+"+ end=+"+ keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 " AspVBScript Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn region AspVBSComment contained start="^REM\s\|\sREM\s" end="$" contains=AspVBSTodo keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn region AspVBSComment contained start="^'\|\s'" end="$" contains=AspVBSTodo keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 " misc. Commenting Stuff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword AspVBSTodo contained TODO FIXME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 " Cosmetic syntax errors commanly found in VB but not in AspVBScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 " AspVBScript doesn't use line numbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn region AspVBSError contained start="^\d" end="\s" keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 " AspVBScript also doesn't have type defining variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn match AspVBSError contained "[a-zA-Z0-9_][\$&!#]"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 " Since 'a%' is a VB variable with a type and in AspVBScript you can have 'a%>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 " I have to make a special case so 'a%>' won't show as an error.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn match AspVBSError contained "[a-zA-Z0-9_]%\($\|[^>]\)"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 " Top Cluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn cluster AspVBScriptTop contains=AspVBSStatement,AspVBSFunction,AspVBSMethods,AspVBSNumber,AspVBSString,AspVBSComment,AspVBSError,AspVBSVariableSimple,AspVBSVariableComplex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 " Folding
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn region AspVBSFold start="^\s*\(class\)\s\+.*$" end="^\s*end\s\+\(class\)\>.*$" fold contained transparent keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn region AspVBSFold start="^\s*\(private\|public\)\=\(\s\+default\)\=\s\+\(sub\|function\)\s\+.*$" end="^\s*end\s\+\(function\|sub\)\>.*$" fold contained transparent keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 " Define AspVBScript delimeters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 " <%= func("string_with_%>_in_it") %> This is illegal in ASP syntax.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn region AspVBScriptInsideHtmlTags keepend matchgroup=Delimiter start=+<%=\=+ end=+%>+ contains=@AspVBScriptTop, AspVBSFold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn region AspVBScriptInsideHtmlTags keepend matchgroup=Delimiter start=+<script\s\+language="\=vbscript"\=[^>]*\s\+runatserver[^>]*>+ end=+</script>+ contains=@AspVBScriptTop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 " Synchronization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 " syn sync match AspVBSSyncGroup grouphere AspVBScriptInsideHtmlTags "<%"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 " This is a kludge so the HTML will sync properly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn sync match htmlHighlight grouphere htmlTag "%>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2034
diff changeset
160 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
162 "hi def link AspVBScript Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
163 hi def link AspVBSLineNumber Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
164 hi def link AspVBSNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
165 hi def link AspVBSError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
166 hi def link AspVBSStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
167 hi def link AspVBSString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
168 hi def link AspVBSComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
169 hi def link AspVBSTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
170 hi def link AspVBSFunction Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
171 hi def link AspVBSMethods PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
172 hi def link AspVBSEvents Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
173 hi def link AspVBSTypeSpecifier Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 let b:current_syntax = "aspvbs"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 if main_syntax == 'aspvbs'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 unlet main_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 " vim: ts=8:sw=2:sts=0:noet