| 1 |
{ |
| 2 |
"information_for_contributors": [ |
| 3 |
"This file has been converted from https://github.com/textmate/asp.vb.net.tmbundle/blob/master/Syntaxes/ASP%20VB.net.plist", |
| 4 |
"If you want to provide a fix or improvement, please create a pull request against the original repository.", |
| 5 |
"Once accepted there, we are happy to receive an update request." |
| 6 |
], |
| 7 |
"version": "https://github.com/textmate/asp.vb.net.tmbundle/commit/72d44550b3286d0382d7be0624140cf97857ff69", |
| 8 |
"name": "vb", |
| 9 |
"scopeName": "source.asp.vb.net", |
| 10 |
"comment": "Modified from the original ASP bundle. Originally modified by Thomas Aylott subtleGradient.com", |
| 11 |
"patterns": [ |
| 12 |
{ |
| 13 |
"match": "\\n", |
| 14 |
"name": "meta.ending-space" |
| 15 |
}, |
| 16 |
{ |
| 17 |
"include": "#round-brackets" |
| 18 |
}, |
| 19 |
{ |
| 20 |
"begin": "^(?=\\t)", |
| 21 |
"end": "(?=[^\\t])", |
| 22 |
"name": "meta.leading-space", |
| 23 |
"patterns": [ |
| 24 |
{ |
| 25 |
"captures": { |
| 26 |
"1": { |
| 27 |
"name": "meta.odd-tab.tabs" |
| 28 |
}, |
| 29 |
"2": { |
| 30 |
"name": "meta.even-tab.tabs" |
| 31 |
} |
| 32 |
}, |
| 33 |
"match": "(\\t)(\\t)?" |
| 34 |
} |
| 35 |
] |
| 36 |
}, |
| 37 |
{ |
| 38 |
"begin": "^(?= )", |
| 39 |
"end": "(?=[^ ])", |
| 40 |
"name": "meta.leading-space", |
| 41 |
"patterns": [ |
| 42 |
{ |
| 43 |
"captures": { |
| 44 |
"1": { |
| 45 |
"name": "meta.odd-tab.spaces" |
| 46 |
}, |
| 47 |
"2": { |
| 48 |
"name": "meta.even-tab.spaces" |
| 49 |
} |
| 50 |
}, |
| 51 |
"match": "( )( )?" |
| 52 |
} |
| 53 |
] |
| 54 |
}, |
| 55 |
{ |
| 56 |
"captures": { |
| 57 |
"1": { |
| 58 |
"name": "storage.type.function.asp" |
| 59 |
}, |
| 60 |
"2": { |
| 61 |
"name": "entity.name.function.asp" |
| 62 |
}, |
| 63 |
"3": { |
| 64 |
"name": "punctuation.definition.parameters.asp" |
| 65 |
}, |
| 66 |
"4": { |
| 67 |
"name": "variable.parameter.function.asp" |
| 68 |
}, |
| 69 |
"5": { |
| 70 |
"name": "punctuation.definition.parameters.asp" |
| 71 |
} |
| 72 |
}, |
| 73 |
"match": "^\\s*((?i:function|sub))\\s*([a-zA-Z_]\\w*)\\s*(\\()([^)]*)(\\)).*\\n?", |
| 74 |
"name": "meta.function.asp" |
| 75 |
}, |
| 76 |
{ |
| 77 |
"begin": "(^[ \\t]+)?(?=')", |
| 78 |
"beginCaptures": { |
| 79 |
"1": { |
| 80 |
"name": "punctuation.whitespace.comment.leading.asp" |
| 81 |
} |
| 82 |
}, |
| 83 |
"end": "(?!\\G)", |
| 84 |
"patterns": [ |
| 85 |
{ |
| 86 |
"begin": "'", |
| 87 |
"beginCaptures": { |
| 88 |
"0": { |
| 89 |
"name": "punctuation.definition.comment.asp" |
| 90 |
} |
| 91 |
}, |
| 92 |
"end": "\\n", |
| 93 |
"name": "comment.line.apostrophe.asp" |
| 94 |
} |
| 95 |
] |
| 96 |
}, |
| 97 |
{ |
| 98 |
"match": "(?i:\\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\\b)", |
| 99 |
"name": "keyword.control.asp" |
| 100 |
}, |
| 101 |
{ |
| 102 |
"match": "(?i:\\b(Mod|And|Not|Or|Xor|as)\\b)", |
| 103 |
"name": "keyword.operator.asp" |
| 104 |
}, |
| 105 |
{ |
| 106 |
"captures": { |
| 107 |
"1": { |
| 108 |
"name": "storage.type.asp" |
| 109 |
}, |
| 110 |
"2": { |
| 111 |
"name": "variable.other.bfeac.asp" |
| 112 |
}, |
| 113 |
"3": { |
| 114 |
"name": "meta.separator.comma.asp" |
| 115 |
} |
| 116 |
}, |
| 117 |
"match": "(?i:(dim)\\s*(?:(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b)\\s*(,?)))", |
| 118 |
"name": "variable.other.dim.asp" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"match": "(?i:\\s*\\b(Call|Class|Const|Dim|Redim|Function|Sub|Private Sub|Public Sub|End Sub|End Function|End Class|End Property|Public Property|Private Property|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\\b\\s*)", |
| 122 |
"name": "storage.type.asp" |
| 123 |
}, |
| 124 |
{ |
| 125 |
"match": "(?i:\\b(Private|Public|Default)\\b)", |
| 126 |
"name": "storage.modifier.asp" |
| 127 |
}, |
| 128 |
{ |
| 129 |
"match": "(?i:\\s*\\b(Empty|False|Nothing|Null|True)\\b)", |
| 130 |
"name": "constant.language.asp" |
| 131 |
}, |
| 132 |
{ |
| 133 |
"begin": "\"", |
| 134 |
"beginCaptures": { |
| 135 |
"0": { |
| 136 |
"name": "punctuation.definition.string.begin.asp" |
| 137 |
} |
| 138 |
}, |
| 139 |
"end": "\"", |
| 140 |
"endCaptures": { |
| 141 |
"0": { |
| 142 |
"name": "punctuation.definition.string.end.asp" |
| 143 |
} |
| 144 |
}, |
| 145 |
"name": "string.quoted.double.asp", |
| 146 |
"patterns": [ |
| 147 |
{ |
| 148 |
"match": "\"\"", |
| 149 |
"name": "constant.character.escape.apostrophe.asp" |
| 150 |
} |
| 151 |
] |
| 152 |
}, |
| 153 |
{ |
| 154 |
"captures": { |
| 155 |
"1": { |
| 156 |
"name": "punctuation.definition.variable.asp" |
| 157 |
} |
| 158 |
}, |
| 159 |
"match": "(\\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b\\s*", |
| 160 |
"name": "variable.other.asp" |
| 161 |
}, |
| 162 |
{ |
| 163 |
"match": "(?i:\\b(Application|ObjectContext|Request|Response|Server|Session)\\b)", |
| 164 |
"name": "support.class.asp" |
| 165 |
}, |
| 166 |
{ |
| 167 |
"match": "(?i:\\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\\b)", |
| 168 |
"name": "support.class.collection.asp" |
| 169 |
}, |
| 170 |
{ |
| 171 |
"match": "(?i:\\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\\b)", |
| 172 |
"name": "support.constant.asp" |
| 173 |
}, |
| 174 |
{ |
| 175 |
"match": "(?i:\\b(Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\\b)", |
| 176 |
"name": "support.function.asp" |
| 177 |
}, |
| 178 |
{ |
| 179 |
"match": "(?i:\\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\\b)", |
| 180 |
"name": "support.function.event.asp" |
| 181 |
}, |
| 182 |
{ |
| 183 |
"match": "(?i:(?<=as )(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b))", |
| 184 |
"name": "support.type.vb.asp" |
| 185 |
}, |
| 186 |
{ |
| 187 |
"match": "(?i:\\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\\b)", |
| 188 |
"name": "support.function.vb.asp" |
| 189 |
}, |
| 190 |
{ |
| 191 |
"match": "-?\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b", |
| 192 |
"name": "constant.numeric.asp" |
| 193 |
}, |
| 194 |
{ |
| 195 |
"match": "(?i:\\b(vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\\b)", |
| 196 |
"name": "support.type.vb.asp" |
| 197 |
}, |
| 198 |
{ |
| 199 |
"captures": { |
| 200 |
"1": { |
| 201 |
"name": "entity.name.function.asp" |
| 202 |
} |
| 203 |
}, |
| 204 |
"match": "(?i:(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b)(?=\\(\\)?))", |
| 205 |
"name": "support.function.asp" |
| 206 |
}, |
| 207 |
{ |
| 208 |
"match": "(?i:((?<=(\\+|=|-|\\&|\\\\|/|<|>|\\(|,))\\s*\\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\\b(?!(\\(|\\.))|\\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\\b(?=\\s*(\\+|=|-|\\&|\\\\|/|<|>|\\(|\\)))))", |
| 209 |
"name": "variable.other.asp" |
| 210 |
}, |
| 211 |
{ |
| 212 |
"match": "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^=|\\b(in|instanceof|new|delete|typeof|void)\\b", |
| 213 |
"name": "keyword.operator.js" |
| 214 |
} |
| 215 |
], |
| 216 |
"repository": { |
| 217 |
"round-brackets": { |
| 218 |
"begin": "\\(", |
| 219 |
"beginCaptures": { |
| 220 |
"0": { |
| 221 |
"name": "punctuation.section.round-brackets.begin.asp" |
| 222 |
} |
| 223 |
}, |
| 224 |
"end": "\\)", |
| 225 |
"endCaptures": { |
| 226 |
"0": { |
| 227 |
"name": "punctuation.section.round-brackets.end.asp" |
| 228 |
} |
| 229 |
}, |
| 230 |
"name": "meta.round-brackets", |
| 231 |
"patterns": [ |
| 232 |
{ |
| 233 |
"include": "source.asp.vb.net" |
| 234 |
} |
| 235 |
] |
| 236 |
} |
| 237 |
} |
| 238 |
} |
| 239 |
|