corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 define("ace/mode/vbscript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
2 "use strict";
3  
4 var oop = require("../lib/oop");
5 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
6  
7 var VBScriptHighlightRules = function() {
8  
9 var keywordMapper = this.createKeywordMapper({
10 "keyword.control.asp": "If|Then|Else|ElseIf|End|While|Wend|For|To|Each|Case|Select|Return"
11 + "|Continue|Do|Until|Loop|Next|With|Exit|Function|Property|Type|Enum|Sub|IIf",
12 "storage.type.asp": "Dim|Call|Class|Const|Dim|Redim|Set|Let|Get|New|Randomize|Option|Explicit",
13 "storage.modifier.asp": "Private|Public|Default",
14 "keyword.operator.asp": "Mod|And|Not|Or|Xor|as",
15 "constant.language.asp": "Empty|False|Nothing|Null|True",
16 "support.class.asp": "Application|ObjectContext|Request|Response|Server|Session",
17 "support.class.collection.asp": "Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables",
18 "support.constant.asp": "TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute"
19 + "|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout",
20 "support.function.asp": "Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog"
21 + "|BinaryWrite|Clear|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex",
22 "support.function.event.asp": "Application_OnEnd|Application_OnStart"
23 + "|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart",
24 "support.function.vb.asp": "Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng"
25 + "|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial"
26 + "|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency"
27 + "|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex"
28 + "|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric"
29 + "|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim"
30 + "|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace"
31 + "|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion"
32 + "|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse"
33 + "|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year",
34 "support.type.vb.asp": "vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|"
35 + "int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday"
36 + "|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek"
37 + "|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger"
38 + "|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant"
39 + "|vbDataObject|vbDecimal|vbByte|vbArray"
40 }, "identifier", true);
41  
42 this.$rules = {
43 "start": [
44 {
45 token: [
46 "meta.ending-space"
47 ],
48 regex: "$"
49 },
50 {
51 token: [null],
52 regex: "^(?=\\t)",
53 next: "state_3"
54 },
55 {
56 token: [null],
57 regex: "^(?= )",
58 next: "state_4"
59 },
60 {
61 token: [
62 "text",
63 "storage.type.function.asp",
64 "text",
65 "entity.name.function.asp",
66 "text",
67 "punctuation.definition.parameters.asp",
68 "variable.parameter.function.asp",
69 "punctuation.definition.parameters.asp"
70 ],
71 regex: "^(\\s*)(Function|Sub)(\\s+)([a-zA-Z_]\\w*)(\\s*)(\\()([^)]*)(\\))"
72 },
73 {
74 token: "punctuation.definition.comment.asp",
75 regex: "'|REM(?=\\s|$)",
76 next: "comment",
77 caseInsensitive: true
78 },
79 {
80 token: "storage.type.asp",
81 regex: "On Error Resume Next|On Error GoTo",
82 caseInsensitive: true
83 },
84 {
85 token: "punctuation.definition.string.begin.asp",
86 regex: '"',
87 next: "string"
88 },
89 {
90 token: [
91 "punctuation.definition.variable.asp"
92 ],
93 regex: "(\\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b\\s*"
94 },
95 {
96 token: "constant.numeric.asp",
97 regex: "-?\\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"
98 },
99 {
100 regex: "\\w+",
101 token: keywordMapper
102 },
103 {
104 token: ["entity.name.function.asp"],
105 regex: "(?:(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b)(?=\\(\\)?))"
106 },
107 {
108 token: ["keyword.operator.asp"],
109 regex: "\\-|\\+|\\*\\/|\\>|\\<|\\=|\\&"
110 }
111 ],
112 "state_3": [
113 {
114 token: [
115 "meta.odd-tab.tabs",
116 "meta.even-tab.tabs"
117 ],
118 regex: "(\\t)(\\t)?"
119 },
120 {
121 token: "meta.leading-space",
122 regex: "(?=[^\\t])",
123 next: "start"
124 },
125 {
126 token: "meta.leading-space",
127 regex: ".",
128 next: "state_3"
129 }
130 ],
131 "state_4": [
132 {
133 token: ["meta.odd-tab.spaces", "meta.even-tab.spaces"],
134 regex: "( )( )?"
135 },
136 {
137 token: "meta.leading-space",
138 regex: "(?=[^ ])",
139 next: "start"
140 },
141 {
142 defaultToken: "meta.leading-space"
143 }
144 ],
145 "comment": [
146 {
147 token: "comment.line.apostrophe.asp",
148 regex: "$|(?=(?:%>))",
149 next: "start"
150 },
151 {
152 defaultToken: "comment.line.apostrophe.asp"
153 }
154 ],
155 "string": [
156 {
157 token: "constant.character.escape.apostrophe.asp",
158 regex: '""'
159 },
160 {
161 token: "string.quoted.double.asp",
162 regex: '"',
163 next: "start"
164 },
165 {
166 defaultToken: "string.quoted.double.asp"
167 }
168 ]
169 }
170  
171 };
172  
173 oop.inherits(VBScriptHighlightRules, TextHighlightRules);
174  
175 exports.VBScriptHighlightRules = VBScriptHighlightRules;
176 });
177  
178 define("ace/mode/vbscript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/vbscript_highlight_rules"], function(require, exports, module) {
179 "use strict";
180  
181 var oop = require("../lib/oop");
182 var TextMode = require("./text").Mode;
183 var VBScriptHighlightRules = require("./vbscript_highlight_rules").VBScriptHighlightRules;
184  
185 var Mode = function() {
186 this.HighlightRules = VBScriptHighlightRules;
187 this.$behaviour = this.$defaultBehaviour;
188 };
189 oop.inherits(Mode, TextMode);
190  
191 (function() {
192  
193 this.lineCommentStart = ["'", "REM"];
194  
195 this.$id = "ace/mode/vbscript";
196 }).call(Mode.prototype);
197  
198 exports.Mode = Mode;
199 });