Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
768 changed files
with
11,826 additions
and
31,036 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
%YAML 1.2 | ||
--- | ||
# http://www.sublimetext.com/docs/3/syntax.html | ||
name: ASP | ||
comment: "ASP SCRIPTING DICTIONARY – By Rich Barton: Version 1.0 (based on PHP Scripting Dictionary by Justin French, Sune Foldager and Allan Odgaard) Note: .asp is handled by asp/html" | ||
file_extensions: | ||
- asa | ||
scope: source.asp | ||
contexts: | ||
main: | ||
- match: '^\s*((?i:function|sub))\s*([a-zA-Z_]\w*)\s*(\()([^)]*)(\)).*\n?' | ||
scope: meta.function.asp | ||
captures: | ||
1: storage.type.function.asp | ||
2: entity.name.function.asp | ||
3: punctuation.definition.parameters.asp | ||
4: variable.parameter.function.asp | ||
5: punctuation.definition.parameters.asp | ||
- match: (').*$\n? | ||
scope: comment.line.apostrophe.asp | ||
captures: | ||
1: punctuation.definition.comment.asp | ||
- match: (REM ).*$\n? | ||
scope: comment.line.rem.asp | ||
captures: | ||
1: punctuation.definition.comment.asp | ||
- match: (?i:\b(If|Then|Else|ElseIf|End If|While|Wend|For|To|Each|In|Step|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub)\b) | ||
scope: keyword.control.asp | ||
- match: '=|>=|<|>|<|<>|\+|-|\*|\^|&|\b(?i:(Mod|And|Not|Or|Xor|Is))\b' | ||
scope: keyword.operator.asp | ||
- match: (?i:\b(Call|Class|Const|Dim|Redim|Function|Sub|Property|End Property|End sub|End Function|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\b) | ||
scope: storage.type.asp | ||
- match: (?i:\b(Private|Public|Default)\b) | ||
scope: storage.modifier.asp | ||
- match: (?i:\b(Empty|False|Nothing|Null|True)\b) | ||
scope: constant.language.asp | ||
- match: '"' | ||
captures: | ||
0: punctuation.definition.string.begin.asp | ||
push: | ||
- meta_scope: string.quoted.double.asp | ||
- match: '"(?!")' | ||
captures: | ||
0: punctuation.definition.string.end.asp | ||
pop: true | ||
- match: '""' | ||
scope: constant.character.escape.apostrophe.asp | ||
- match: '(\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b' | ||
scope: variable.other.asp | ||
captures: | ||
1: punctuation.definition.variable.asp | ||
- match: (?i:\b(Application|ObjectContext|Request|Response|Server|Session)\b) | ||
scope: support.class.asp | ||
- match: (?i:\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\b) | ||
scope: support.class.collection.asp | ||
- match: (?i:\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\b) | ||
scope: support.constant.asp | ||
- match: (?i:\b(Lock|Unlock|SetAbort|SetComplete|BianryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon)\b) | ||
scope: support.function.asp | ||
- match: (?i:\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart|Class_Initialize|Class_Terminate)\b) | ||
scope: support.function.event.asp | ||
- 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) | ||
scope: support.function.vb.asp | ||
- 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' | ||
scope: constant.numeric.asp | ||
- match: (?i:\b(vbtrue|fvbalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|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) | ||
scope: support.type.vb.asp |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
%YAML 1.2 | ||
--- | ||
# http://www.sublimetext.com/docs/3/syntax.html | ||
name: HTML (ASP) | ||
file_extensions: | ||
- asp | ||
scope: text.html.asp | ||
contexts: | ||
main: | ||
- match: <%=? | ||
captures: | ||
0: punctuation.section.embedded.begin.asp | ||
push: | ||
- meta_scope: source.asp.embedded.html | ||
- match: "%>" | ||
captures: | ||
0: punctuation.section.embedded.end.asp | ||
pop: true | ||
- match: (').*?(?=%>) | ||
scope: comment.line.apostrophe.asp | ||
captures: | ||
1: punctuation.definition.comment.asp | ||
- include: scope:source.asp | ||
- include: scope:text.html.basic |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.