corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
2 "use strict";
3  
4 var oop = require("../lib/oop");
5 var lang = require("../lib/lang");
6 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
7 var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
8 var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
9 var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero";
10 var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow";
11 var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
12  
13 var numRe = exports.numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
14 var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
15 var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
16  
17 var CssHighlightRules = function() {
18  
19 var keywordMapper = this.createKeywordMapper({
20 "support.function": supportFunction,
21 "support.constant": supportConstant,
22 "support.type": supportType,
23 "support.constant.color": supportConstantColor,
24 "support.constant.fonts": supportConstantFonts
25 }, "text", true);
26  
27 this.$rules = {
28 "start" : [{
29 token : "comment", // multi line comment
30 regex : "\\/\\*",
31 push : "comment"
32 }, {
33 token: "paren.lparen",
34 regex: "\\{",
35 push: "ruleset"
36 }, {
37 token: "string",
38 regex: "@.*?{",
39 push: "media"
40 }, {
41 token: "keyword",
42 regex: "#[a-z0-9-_]+"
43 }, {
44 token: "variable",
45 regex: "\\.[a-z0-9-_]+"
46 }, {
47 token: "string",
48 regex: ":[a-z0-9-_]+"
49 }, {
50 token: "constant",
51 regex: "[a-z0-9-_]+"
52 }, {
53 caseInsensitive: true
54 }],
55  
56 "media" : [{
57 token : "comment", // multi line comment
58 regex : "\\/\\*",
59 push : "comment"
60 }, {
61 token: "paren.lparen",
62 regex: "\\{",
63 push: "ruleset"
64 }, {
65 token: "string",
66 regex: "\\}",
67 next: "pop"
68 }, {
69 token: "keyword",
70 regex: "#[a-z0-9-_]+"
71 }, {
72 token: "variable",
73 regex: "\\.[a-z0-9-_]+"
74 }, {
75 token: "string",
76 regex: ":[a-z0-9-_]+"
77 }, {
78 token: "constant",
79 regex: "[a-z0-9-_]+"
80 }, {
81 caseInsensitive: true
82 }],
83  
84 "comment" : [{
85 token : "comment",
86 regex : "\\*\\/",
87 next : "pop"
88 }, {
89 defaultToken : "comment"
90 }],
91  
92 "ruleset" : [
93 {
94 token : "paren.rparen",
95 regex : "\\}",
96 next: "pop"
97 }, {
98 token : "comment", // multi line comment
99 regex : "\\/\\*",
100 push : "comment"
101 }, {
102 token : "string", // single line
103 regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
104 }, {
105 token : "string", // single line
106 regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
107 }, {
108 token : ["constant.numeric", "keyword"],
109 regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
110 }, {
111 token : "constant.numeric",
112 regex : numRe
113 }, {
114 token : "constant.numeric", // hex6 color
115 regex : "#[a-f0-9]{6}"
116 }, {
117 token : "constant.numeric", // hex3 color
118 regex : "#[a-f0-9]{3}"
119 }, {
120 token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
121 regex : pseudoElements
122 }, {
123 token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
124 regex : pseudoClasses
125 }, {
126 token : ["support.function", "string", "support.function"],
127 regex : "(url\\()(.*)(\\))"
128 }, {
129 token : keywordMapper,
130 regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
131 }, {
132 caseInsensitive: true
133 }]
134 };
135  
136 this.normalizeRules();
137 };
138  
139 oop.inherits(CssHighlightRules, TextHighlightRules);
140  
141 exports.CssHighlightRules = CssHighlightRules;
142  
143 });
144  
145 ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
146 "use strict";
147  
148 var oop = require("../lib/oop");
149 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
150  
151 var DocCommentHighlightRules = function() {
152 this.$rules = {
153 "start" : [ {
154 token : "comment.doc.tag",
155 regex : "@[\\w\\d_]+" // TODO: fix email addresses
156 },
157 DocCommentHighlightRules.getTagRule(),
158 {
159 defaultToken : "comment.doc",
160 caseInsensitive: true
161 }]
162 };
163 };
164  
165 oop.inherits(DocCommentHighlightRules, TextHighlightRules);
166  
167 DocCommentHighlightRules.getTagRule = function(start) {
168 return {
169 token : "comment.doc.tag.storage.type",
170 regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
171 };
172 }
173  
174 DocCommentHighlightRules.getStartRule = function(start) {
175 return {
176 token : "comment.doc", // doc comment
177 regex : "\\/\\*(?=\\*)",
178 next : start
179 };
180 };
181  
182 DocCommentHighlightRules.getEndRule = function (start) {
183 return {
184 token : "comment.doc", // closing comment
185 regex : "\\*\\/",
186 next : start
187 };
188 };
189  
190  
191 exports.DocCommentHighlightRules = DocCommentHighlightRules;
192  
193 });
194  
195 ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
196 "use strict";
197  
198 var oop = require("../lib/oop");
199 var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
200 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
201 var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
202  
203 var JavaScriptHighlightRules = function(options) {
204 var keywordMapper = this.createKeywordMapper({
205 "variable.language":
206 "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
207 "Namespace|QName|XML|XMLList|" + // E4X
208 "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
209 "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
210 "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
211 "SyntaxError|TypeError|URIError|" +
212 "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
213 "isNaN|parseFloat|parseInt|" +
214 "JSON|Math|" + // Other
215 "this|arguments|prototype|window|document" , // Pseudo
216 "keyword":
217 "const|yield|import|get|set|async|await|" +
218 "break|case|catch|continue|default|delete|do|else|finally|for|function|" +
219 "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
220 "__parent__|__count__|escape|unescape|with|__proto__|" +
221 "class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
222 "storage.type":
223 "const|let|var|function",
224 "constant.language":
225 "null|Infinity|NaN|undefined",
226 "support.function":
227 "alert",
228 "constant.language.boolean": "true|false"
229 }, "identifier");
230 var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
231  
232 var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
233 "u[0-9a-fA-F]{4}|" + // unicode
234 "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
235 "[0-2][0-7]{0,2}|" + // oct
236 "3[0-7][0-7]?|" + // oct
237 "[4-7][0-7]?|" + //oct
238 ".)";
239  
240 this.$rules = {
241 "no_regex" : [
242 DocCommentHighlightRules.getStartRule("doc-start"),
243 comments("no_regex"),
244 {
245 token : "string",
246 regex : "'(?=.)",
247 next : "qstring"
248 }, {
249 token : "string",
250 regex : '"(?=.)',
251 next : "qqstring"
252 }, {
253 token : "constant.numeric", // hex
254 regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/
255 }, {
256 token : "constant.numeric", // float
257 regex : /[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/
258 }, {
259 token : [
260 "storage.type", "punctuation.operator", "support.function",
261 "punctuation.operator", "entity.name.function", "text","keyword.operator"
262 ],
263 regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
264 next: "function_arguments"
265 }, {
266 token : [
267 "storage.type", "punctuation.operator", "entity.name.function", "text",
268 "keyword.operator", "text", "storage.type", "text", "paren.lparen"
269 ],
270 regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
271 next: "function_arguments"
272 }, {
273 token : [
274 "entity.name.function", "text", "keyword.operator", "text", "storage.type",
275 "text", "paren.lparen"
276 ],
277 regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
278 next: "function_arguments"
279 }, {
280 token : [
281 "storage.type", "punctuation.operator", "entity.name.function", "text",
282 "keyword.operator", "text",
283 "storage.type", "text", "entity.name.function", "text", "paren.lparen"
284 ],
285 regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
286 next: "function_arguments"
287 }, {
288 token : [
289 "storage.type", "text", "entity.name.function", "text", "paren.lparen"
290 ],
291 regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
292 next: "function_arguments"
293 }, {
294 token : [
295 "entity.name.function", "text", "punctuation.operator",
296 "text", "storage.type", "text", "paren.lparen"
297 ],
298 regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
299 next: "function_arguments"
300 }, {
301 token : [
302 "text", "text", "storage.type", "text", "paren.lparen"
303 ],
304 regex : "(:)(\\s*)(function)(\\s*)(\\()",
305 next: "function_arguments"
306 }, {
307 token : "keyword",
308 regex : "(?:" + kwBeforeRe + ")\\b",
309 next : "start"
310 }, {
311 token : ["support.constant"],
312 regex : /that\b/
313 }, {
314 token : ["storage.type", "punctuation.operator", "support.function.firebug"],
315 regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
316 }, {
317 token : keywordMapper,
318 regex : identifierRe
319 }, {
320 token : "punctuation.operator",
321 regex : /[.](?![.])/,
322 next : "property"
323 }, {
324 token : "keyword.operator",
325 regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
326 <+=?|> next : "start"
327 <+=?|> }, {
328 <+=?|> token : "punctuation.operator",
329 <+=?|> regex : /[?:,;.]/,
330 <+=?|> next : "start"
331 <+=?|> }, {
332 <+=?|> token : "paren.lparen",
333 <+=?|> regex : /[\[({]/,
334 <+=?|> next : "start"
335 <+=?|> }, {
336 <+=?|> token : "paren.rparen",
337 <+=?|> regex : /[\])}]/
338 <+=?|> }, {
339 <+=?|> token: "comment",
340 <+=?|> regex: /^#!.*$/
341 <+=?|> }
342 <+=?|> ],
343 <+=?|> property: [{
344 <+=?|> token : "text",
345 <+=?|> regex : "\\s+"
346 <+=?|> }, {
347 <+=?|> token : [
348 <+=?|> "storage.type", "punctuation.operator", "entity.name.function", "text",
349 <+=?|> "keyword.operator", "text",
350 <+=?|> "storage.type", "text", "entity.name.function", "text", "paren.lparen"
351 <+=?|> ],
352 <+=?|> regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
353 <+=?|> next: "function_arguments"
354 <+=?|> }, {
355 <+=?|> token : "punctuation.operator",
356 <+=?|> regex : /[.](?![.])/
357 <+=?|> }, {
358 <+=?|> token : "support.function",
359 <+=?|> regex : /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
360 <+=?|> }, {
361 <+=?|> token : "support.function.dom",
362 <+=?|> regex : /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
363 <+=?|> }, {
364 <+=?|> token : "support.constant",
365 <+=?|> regex : /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
366 <+=?|> }, {
367 <+=?|> token : "identifier",
368 <+=?|> regex : identifierRe
369 <+=?|> }, {
370 <+=?|> regex: "",
371 <+=?|> token: "empty",
372 <+=?|> next: "no_regex"
373 <+=?|> }
374 <+=?|> ],
375 <+=?|> "start": [
376 <+=?|> DocCommentHighlightRules.getStartRule("doc-start"),
377 <+=?|> comments("start"),
378 <+=?|> {
379 <+=?|> token: "string.regexp",
380 <+=?|> regex: "\\/",
381 <+=?|> next: "regex"
382 <+=?|> }, {
383 <+=?|> token : "text",
384 <+=?|> regex : "\\s+|^$",
385 <+=?|> next : "start"
386 <+=?|> }, {
387 <+=?|> token: "empty",
388 <+=?|> regex: "",
389 <+=?|> next: "no_regex"
390 <+=?|> }
391 <+=?|> ],
392 <+=?|> "regex": [
393 <+=?|> {
394 <+=?|> token: "regexp.keyword.operator",
395 <+=?|> regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
396 <+=?|> }, {
397 <+=?|> token: "string.regexp",
398 <+=?|> regex: "/[sxngimy]*",
399 <+=?|> next: "no_regex"
400 <+=?|> }, {
401 <+=?|> token : "invalid",
402 <+=?|> regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
403 <+=?|> }, {
404 <+=?|> token : "constant.language.escape",
405 <+=?|> regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
406 <+=?|> }, {
407 <+=?|> token : "constant.language.delimiter",
408 <+=?|> regex: /\|/
409 <+=?|> }, {
410 <+=?|> token: "constant.language.escape",
411 <+=?|> regex: /\[\^?/,
412 <+=?|> next: "regex_character_class"
413 <+=?|> }, {
414 <+=?|> token: "empty",
415 <+=?|> regex: "$",
416 <+=?|> next: "no_regex"
417 <+=?|> }, {
418 <+=?|> defaultToken: "string.regexp"
419 <+=?|> }
420 <+=?|> ],
421 <+=?|> "regex_character_class": [
422 <+=?|> {
423 <+=?|> token: "regexp.charclass.keyword.operator",
424 <+=?|> regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
425 <+=?|> }, {
426 <+=?|> token: "constant.language.escape",
427 <+=?|> regex: "]",
428 <+=?|> next: "regex"
429 <+=?|> }, {
430 <+=?|> token: "constant.language.escape",
431 <+=?|> regex: "-"
432 <+=?|> }, {
433 <+=?|> token: "empty",
434 <+=?|> regex: "$",
435 <+=?|> next: "no_regex"
436 <+=?|> }, {
437 <+=?|> defaultToken: "string.regexp.charachterclass"
438 <+=?|> }
439 <+=?|> ],
440 <+=?|> "function_arguments": [
441 <+=?|> {
442 <+=?|> token: "variable.parameter",
443 <+=?|> regex: identifierRe
444 <+=?|> }, {
445 <+=?|> token: "punctuation.operator",
446 <+=?|> regex: "[, ]+"
447 <+=?|> }, {
448 <+=?|> token: "punctuation.operator",
449 <+=?|> regex: "$"
450 <+=?|> }, {
451 <+=?|> token: "empty",
452 <+=?|> regex: "",
453 <+=?|> next: "no_regex"
454 <+=?|> }
455 <+=?|> ],
456 <+=?|> "qqstring" : [
457 <+=?|> {
458 <+=?|> token : "constant.language.escape",
459 <+=?|> regex : escapedRe
460 <+=?|> }, {
461 <+=?|> token : "string",
462 <+=?|> regex : "\\\\$",
463 <+=?|> next : "qqstring"
464 <+=?|> }, {
465 <+=?|> token : "string",
466 <+=?|> regex : '"|$',
467 <+=?|> next : "no_regex"
468 <+=?|> }, {
469 <+=?|> defaultToken: "string"
470 <+=?|> }
471 <+=?|> ],
472 <+=?|> "qstring" : [
473 <+=?|> {
474 <+=?|> token : "constant.language.escape",
475 <+=?|> regex : escapedRe
476 <+=?|> }, {
477 <+=?|> token : "string",
478 <+=?|> regex : "\\\\$",
479 <+=?|> next : "qstring"
480 <+=?|> }, {
481 <+=?|> token : "string",
482 <+=?|> regex : "'|$",
483 <+=?|> next : "no_regex"
484 <+=?|> }, {
485 <+=?|> defaultToken: "string"
486 <+=?|> }
487 <+=?|> ]
488 <+=?|> };
489  
490  
491 <+=?|> if (!options || !options.noES6) {
492 <+=?|> this.$rules.no_regex.unshift({
493 <+=?|> regex: "[{}]", onMatch: function(val, state, stack) {
494 <+=?|> this.next = val == "{" ? this.nextState : "";
495 <+=?|> if (val == "{" && stack.length) {
496 <+=?|> stack.unshift("start", state);
497 <+=?|> }
498 <+=?|> else if (val == "}" && stack.length) {
499 <+=?|> stack.shift();
500 <+=?|> this.next = stack.shift();
501 <+=?|> if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
502 <+=?|> return "paren.quasi.end";
503 <+=?|> }
504 <+=?|> return val == "{" ? "paren.lparen" : "paren.rparen";
505 <+=?|> },
506 <+=?|> nextState: "start"
507 <+=?|> }, {
508 <+=?|> token : "string.quasi.start",
509 <+=?|> regex : /`/,
510 <+=?|> push : [{
511 <+=?|> token : "constant.language.escape",
512 <+=?|> regex : escapedRe
513 <+=?|> }, {
514 <+=?|> token : "paren.quasi.start",
515 <+=?|> regex : /\${/,
516 <+=?|> push : "start"
517 <+=?|> }, {
518 <+=?|> token : "string.quasi.end",
519 <+=?|> regex : /`/,
520 <+=?|> next : "pop"
521 <+=?|> }, {
522 <+=?|> defaultToken: "string.quasi"
523 <+=?|> }]
524 <+=?|> });
525  
526 <+=?|> if (!options || options.jsx != false)
527 <+=?|> JSX.call(this);
528 <+=?|> }
529  
530 <+=?|> this.embedRules(DocCommentHighlightRules, "doc-",
531 <+=?|> [ DocCommentHighlightRules.getEndRule("no_regex") ]);
532  
533 <+=?|> this.normalizeRules();
534 <+=?|>};
535  
536 <+=?|>oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
537  
538 <+=?|>function JSX() {
539 <+=?|> var tagRegex = identifierRe.replace("\\d", "\\d\\-");
540 <+=?|> var jsxTag = {
541 <+=?|> onMatch : function(val, state, stack) {
542 <+=?|> var offset = val.charAt(1) == "/" ? 2 : 1;
543 <+=?|> if (offset == 1) {
544 <+=?|> if (state != this.nextState)
545 <+=?|> stack.unshift(this.next, this.nextState, 0);
546 <+=?|> else
547 <+=?|> stack.unshift(this.next);
548 <+=?|> stack[2]++;
549 <+=?|> } else if (offset == 2) {
550 <+=?|> if (state == this.nextState) {
551 <+=?|> stack[1]--;
552 <+=?|> if (!stack[1] || stack[1] < 0) {
553 <+=?|> stack.shift();
554 <+=?|> stack.shift();
555 <+=?|> }
556 <+=?|> }
557 <+=?|> }
558 <+=?|> return [{
559 <+=?|> type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
560 <+=?|> value: val.slice(0, offset)
561 <+=?|> }, {
562 <+=?|> type: "meta.tag.tag-name.xml",
563 <+=?|> value: val.substr(offset)
564 <+=?|> }];
565 <+=?|> },
566 <+=?|> regex : "</?" + tagRegex + "",
567 <+=?|> next: "jsxAttributes",
568 <+=?|> nextState: "jsx"
569 <+=?|> };
570 <+=?|> this.$rules.start.unshift(jsxTag);
571 <+=?|> var jsxJsRule = {
572 <+=?|> regex: "{",
573 <+=?|> token: "paren.quasi.start",
574 <+=?|> push: "start"
575 <+=?|> };
576 <+=?|> this.$rules.jsx = [
577 <+=?|> jsxJsRule,
578 <+=?|> jsxTag,
579 <+=?|> {include : "reference"},
580 <+=?|> {defaultToken: "string"}
581 <+=?|> ];
582 <+=?|> this.$rules.jsxAttributes = [{
583 <+=?|> token : "meta.tag.punctuation.tag-close.xml",
584 <+=?|> regex : "/?>",
585 <+=?|> onMatch : function(value, currentState, stack) {
586 <+=?|> if (currentState == stack[0])
587 <+=?|> stack.shift();
588 <+=?|> if (value.length == 2) {
589 <+=?|> if (stack[0] == this.nextState)
590 <+=?|> stack[1]--;
591 <+=?|> if (!stack[1] || stack[1] < 0) {
592 <+=?|> stack.splice(0, 2);
593 <+=?|> }
594 <+=?|> }
595 <+=?|> this.next = stack[0] || "start";
596 <+=?|> return [{type: this.token, value: value}];
597 <+=?|> },
598 <+=?|> nextState: "jsx"
599 <+=?|> },
600 <+=?|> jsxJsRule,
601 <+=?|> comments("jsxAttributes"),
602 <+=?|> {
603 <+=?|> token : "entity.other.attribute-name.xml",
604 <+=?|> regex : tagRegex
605 <+=?|> }, {
606 <+=?|> token : "keyword.operator.attribute-equals.xml",
607 <+=?|> regex : "="
608 <+=?|> }, {
609 <+=?|> token : "text.tag-whitespace.xml",
610 <+=?|> regex : "\\s+"
611 <+=?|> }, {
612 <+=?|> token : "string.attribute-value.xml",
613 <+=?|> regex : "'",
614 <+=?|> stateName : "jsx_attr_q",
615 <+=?|> push : [
616 <+=?|> {token : "string.attribute-value.xml", regex: "'", next: "pop"},
617 <+=?|> {include : "reference"},
618 <+=?|> {defaultToken : "string.attribute-value.xml"}
619 <+=?|> ]
620 <+=?|> }, {
621 <+=?|> token : "string.attribute-value.xml",
622 <+=?|> regex : '"',
623 <+=?|> stateName : "jsx_attr_qq",
624 <+=?|> push : [
625 <+=?|> {token : "string.attribute-value.xml", regex: '"', next: "pop"},
626 <+=?|> {include : "reference"},
627 <+=?|> {defaultToken : "string.attribute-value.xml"}
628 <+=?|> ]
629 <+=?|> },
630 <+=?|> jsxTag
631 <+=?|> ];
632 <+=?|> this.$rules.reference = [{
633 <+=?|> token : "constant.language.escape.reference.xml",
634 <+=?|> regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
635 <+=?|> }];
636 <+=?|>}
637  
638 <+=?|>function comments(next) {
639 <+=?|> return [
640 <+=?|> {
641 <+=?|> token : "comment", // multi line comment
642 <+=?|> regex : /\/\*/,
643 <+=?|> next: [
644 <+=?|> DocCommentHighlightRules.getTagRule(),
645 <+=?|> {token : "comment", regex : "\\*\\/", next : next || "pop"},
646 <+=?|> {defaultToken : "comment", caseInsensitive: true}
647 <+=?|> ]
648 <+=?|> }, {
649 <+=?|> token : "comment",
650 <+=?|> regex : "\\/\\/",
651 <+=?|> next: [
652 <+=?|> DocCommentHighlightRules.getTagRule(),
653 <+=?|> {token : "comment", regex : "$|^", next : next || "pop"},
654 <+=?|> {defaultToken : "comment", caseInsensitive: true}
655 <+=?|> ]
656 <+=?|> }
657 <+=?|> ];
658 <+=?|>}
659 <+=?|>exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
660 <+=?|>});
661  
662 <+=?|>ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
663 <+=?|>"use strict";
664  
665 <+=?|>var oop = require("../lib/oop");
666 <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
667  
668 <+=?|>var XmlHighlightRules = function(normalize) {
669 <+=?|> var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
670  
671 <+=?|> this.$rules = {
672 <+=?|> start : [
673 <+=?|> {token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},
674 <+=?|> {
675 <+=?|> token : ["punctuation.xml-decl.xml", "keyword.xml-decl.xml"],
676 <+=?|> regex : "(<\\?)(xml)(?=[\\s])", next : "xml_decl", caseInsensitive: true
677 <+=?|> },
678 <+=?|> {
679 <+=?|> token : ["punctuation.instruction.xml", "keyword.instruction.xml"],
680 <+=?|> regex : "(<\\?)(" + tagRegex + ")", next : "processing_instruction"
681 <+=?|> },
682 <+=?|> {token : "comment.xml", regex : "<\\!--", next : "comment"},
683 <+=?|> {
684 <+=?|> token : ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
685 <+=?|> regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype", caseInsensitive: true
686 <+=?|> },
687 <+=?|> {include : "tag"},
688 <+=?|> {token : "text.end-tag-open.xml", regex: "</"},
689 <+=?|> {token : "text.tag-open.xml", regex: "<"},
690 <+=?|> {include : "reference"},
691 <+=?|> {defaultToken : "text.xml"}
692 <+=?|> ],
693  
694 <+=?|> xml_decl : [{
695 <+=?|> token : "entity.other.attribute-name.decl-attribute-name.xml",
696 <+=?|> regex : "(?:" + tagRegex + ":)?" + tagRegex + ""
697 <+=?|> }, {
698 <+=?|> token : "keyword.operator.decl-attribute-equals.xml",
699 <+=?|> regex : "="
700 <+=?|> }, {
701 <+=?|> include: "whitespace"
702 <+=?|> }, {
703 <+=?|> include: "string"
704 <+=?|> }, {
705 <+=?|> token : "punctuation.xml-decl.xml",
706 <+=?|> regex : "\\?>",
707 <+=?|> next : "start"
708 <+=?|> }],
709  
710 <+=?|> processing_instruction : [
711 <+=?|> {token : "punctuation.instruction.xml", regex : "\\?>", next : "start"},
712 <+=?|> {defaultToken : "instruction.xml"}
713 <+=?|> ],
714  
715 <+=?|> doctype : [
716 <+=?|> {include : "whitespace"},
717 <+=?|> {include : "string"},
718 <+=?|> {token : "xml-pe.doctype.xml", regex : ">", next : "start"},
719 <+=?|> {token : "xml-pe.xml", regex : "[-_a-zA-Z0-9:]+"},
720 <+=?|> {token : "punctuation.int-subset", regex : "\\[", push : "int_subset"}
721 <+=?|> ],
722  
723 <+=?|> int_subset : [{
724 <+=?|> token : "text.xml",
725 <+=?|> regex : "\\s+"
726 <+=?|> }, {
727 <+=?|> token: "punctuation.int-subset.xml",
728 <+=?|> regex: "]",
729 <+=?|> next: "pop"
730 <+=?|> }, {
731 <+=?|> token : ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
732 <+=?|> regex : "(<\\!)(" + tagRegex + ")",
733 <+=?|> push : [{
734 <+=?|> token : "text",
735 <+=?|> regex : "\\s+"
736 <+=?|> },
737 <+=?|> {
738 <+=?|> token : "punctuation.markup-decl.xml",
739 <+=?|> regex : ">",
740 <+=?|> next : "pop"
741 <+=?|> },
742 <+=?|> {include : "string"}]
743 <+=?|> }],
744  
745 <+=?|> cdata : [
746 <+=?|> {token : "string.cdata.xml", regex : "\\]\\]>", next : "start"},
747 <+=?|> {token : "text.xml", regex : "\\s+"},
748 <+=?|> {token : "text.xml", regex : "(?:[^\\]]|\\](?!\\]>))+"}
749 <+=?|> ],
750  
751 <+=?|> comment : [
752 <+=?|> {token : "comment.xml", regex : "-->", next : "start"},
753 <+=?|> {defaultToken : "comment.xml"}
754 <+=?|> ],
755  
756 <+=?|> reference : [{
757 <+=?|> token : "constant.language.escape.reference.xml",
758 <+=?|> regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
759 <+=?|> }],
760  
761 <+=?|> attr_reference : [{
762 <+=?|> token : "constant.language.escape.reference.attribute-value.xml",
763 <+=?|> regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
764 <+=?|> }],
765  
766 <+=?|> tag : [{
767 <+=?|> token : ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
768 <+=?|> regex : "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
769 <+=?|> next: [
770 <+=?|> {include : "attributes"},
771 <+=?|> {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}
772 <+=?|> ]
773 <+=?|> }],
774  
775 <+=?|> tag_whitespace : [
776 <+=?|> {token : "text.tag-whitespace.xml", regex : "\\s+"}
777 <+=?|> ],
778 <+=?|> whitespace : [
779 <+=?|> {token : "text.whitespace.xml", regex : "\\s+"}
780 <+=?|> ],
781 <+=?|> string: [{
782 <+=?|> token : "string.xml",
783 <+=?|> regex : "'",
784 <+=?|> push : [
785 <+=?|> {token : "string.xml", regex: "'", next: "pop"},
786 <+=?|> {defaultToken : "string.xml"}
787 <+=?|> ]
788 <+=?|> }, {
789 <+=?|> token : "string.xml",
790 <+=?|> regex : '"',
791 <+=?|> push : [
792 <+=?|> {token : "string.xml", regex: '"', next: "pop"},
793 <+=?|> {defaultToken : "string.xml"}
794 <+=?|> ]
795 <+=?|> }],
796  
797 <+=?|> attributes: [{
798 <+=?|> token : "entity.other.attribute-name.xml",
799 <+=?|> regex : "(?:" + tagRegex + ":)?" + tagRegex + ""
800 <+=?|> }, {
801 <+=?|> token : "keyword.operator.attribute-equals.xml",
802 <+=?|> regex : "="
803 <+=?|> }, {
804 <+=?|> include: "tag_whitespace"
805 <+=?|> }, {
806 <+=?|> include: "attribute_value"
807 <+=?|> }],
808  
809 <+=?|> attribute_value: [{
810 <+=?|> token : "string.attribute-value.xml",
811 <+=?|> regex : "'",
812 <+=?|> push : [
813 <+=?|> {token : "string.attribute-value.xml", regex: "'", next: "pop"},
814 <+=?|> {include : "attr_reference"},
815 <+=?|> {defaultToken : "string.attribute-value.xml"}
816 <+=?|> ]
817 <+=?|> }, {
818 <+=?|> token : "string.attribute-value.xml",
819 <+=?|> regex : '"',
820 <+=?|> push : [
821 <+=?|> {token : "string.attribute-value.xml", regex: '"', next: "pop"},
822 <+=?|> {include : "attr_reference"},
823 <+=?|> {defaultToken : "string.attribute-value.xml"}
824 <+=?|> ]
825 <+=?|> }]
826 <+=?|> };
827  
828 <+=?|> if (this.constructor === XmlHighlightRules)
829 <+=?|> this.normalizeRules();
830 <+=?|>};
831  
832  
833 <+=?|>(function() {
834  
835 <+=?|> this.embedTagRules = function(HighlightRules, prefix, tag){
836 <+=?|> this.$rules.tag.unshift({
837 <+=?|> token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
838 <+=?|> regex : "(<)(" + tag + "(?=\\s|>|$))",
839 <+=?|> next: [
840 <+=?|> {include : "attributes"},
841 <+=?|> {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : prefix + "start"}
842 <+=?|> ]
843 <+=?|> });
844  
845 <+=?|> this.$rules[tag + "-end"] = [
846 <+=?|> {include : "attributes"},
847 <+=?|> {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next: "start",
848 <+=?|> onMatch : function(value, currentState, stack) {
849 <+=?|> stack.splice(0);
850 <+=?|> return this.token;
851 <+=?|> }}
852 <+=?|> ]
853  
854 <+=?|> this.embedRules(HighlightRules, prefix, [{
855 <+=?|> token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
856 <+=?|> regex : "(</)(" + tag + "(?=\\s|>|$))",
857 <+=?|> next: tag + "-end"
858 <+=?|> }, {
859 <+=?|> token: "string.cdata.xml",
860 <+=?|> regex : "<\\!\\[CDATA\\["
861 <+=?|> }, {
862 <+=?|> token: "string.cdata.xml",
863 <+=?|> regex : "\\]\\]>"
864 <+=?|> }]);
865 <+=?|> };
866  
867 <+=?|>}).call(TextHighlightRules.prototype);
868  
869 <+=?|>oop.inherits(XmlHighlightRules, TextHighlightRules);
870  
871 <+=?|>exports.XmlHighlightRules = XmlHighlightRules;
872 <+=?|>});
873  
874 <+=?|>ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
875 <+=?|>"use strict";
876  
877 <+=?|>var oop = require("../lib/oop");
878 <+=?|>var lang = require("../lib/lang");
879 <+=?|>var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
880 <+=?|>var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
881 <+=?|>var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
882  
883 <+=?|>var tagMap = lang.createMap({
884 <+=?|> a : 'anchor',
885 <+=?|> button : 'form',
886 <+=?|> form : 'form',
887 <+=?|> img : 'image',
888 <+=?|> input : 'form',
889 <+=?|> label : 'form',
890 <+=?|> option : 'form',
891 <+=?|> script : 'script',
892 <+=?|> select : 'form',
893 <+=?|> textarea : 'form',
894 <+=?|> style : 'style',
895 <+=?|> table : 'table',
896 <+=?|> tbody : 'table',
897 <+=?|> td : 'table',
898 <+=?|> tfoot : 'table',
899 <+=?|> th : 'table',
900 <+=?|> tr : 'table'
901 <+=?|>});
902  
903 <+=?|>var HtmlHighlightRules = function() {
904 <+=?|> XmlHighlightRules.call(this);
905  
906 <+=?|> this.addRules({
907 <+=?|> attributes: [{
908 <+=?|> include : "tag_whitespace"
909 <+=?|> }, {
910 <+=?|> token : "entity.other.attribute-name.xml",
911 <+=?|> regex : "[-_a-zA-Z0-9:.]+"
912 <+=?|> }, {
913 <+=?|> token : "keyword.operator.attribute-equals.xml",
914 <+=?|> regex : "=",
915 <+=?|> push : [{
916 <+=?|> include: "tag_whitespace"
917 <+=?|> }, {
918 <+=?|> token : "string.unquoted.attribute-value.html",
919 <+=?|> regex : "[^<>='\"`\\s]+",
920 <+=?|> next : "pop"
921 <+=?|> }, {
922 <+=?|> token : "empty",
923 <+=?|> regex : "",
924 <+=?|> next : "pop"
925 <+=?|> }]
926 <+=?|> }, {
927 <+=?|> include : "attribute_value"
928 <+=?|> }],
929 <+=?|> tag: [{
930 <+=?|> token : function(start, tag) {
931 <+=?|> var group = tagMap[tag];
932 <+=?|> return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
933 <+=?|> "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
934 <+=?|> },
935 <+=?|> regex : "(</?)([-_a-zA-Z0-9:.]+)",
936 <+=?|> next: "tag_stuff"
937 <+=?|> }],
938 <+=?|> tag_stuff: [
939 <+=?|> {include : "attributes"},
940 <+=?|> {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}
941 <+=?|> ]
942 <+=?|> });
943  
944 <+=?|> this.embedTagRules(CssHighlightRules, "css-", "style");
945 <+=?|> this.embedTagRules(new JavaScriptHighlightRules({jsx: false}).getRules(), "js-", "script");
946  
947 <+=?|> if (this.constructor === HtmlHighlightRules)
948 <+=?|> this.normalizeRules();
949 <+=?|>};
950  
951 <+=?|>oop.inherits(HtmlHighlightRules, XmlHighlightRules);
952  
953 <+=?|>exports.HtmlHighlightRules = HtmlHighlightRules;
954 <+=?|>});
955  
956 <+=?|>ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
957 <+=?|>"use strict";
958  
959 <+=?|>var oop = require("../lib/oop");
960 <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
961 <+=?|>var constantOtherSymbol = exports.constantOtherSymbol = {
962 <+=?|> token : "constant.other.symbol.ruby", // symbol
963 <+=?|> regex : "[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"
964 <+=?|>};
965  
966 <+=?|>var qString = exports.qString = {
967 <+=?|> token : "string", // single line
968 <+=?|> regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
969 <+=?|>};
970  
971 <+=?|>var qqString = exports.qqString = {
972 <+=?|> token : "string", // single line
973 <+=?|> regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
974 <+=?|>};
975  
976 <+=?|>var tString = exports.tString = {
977 <+=?|> token : "string", // backtick string
978 <+=?|> regex : "[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"
979 <+=?|>};
980  
981 <+=?|>var constantNumericHex = exports.constantNumericHex = {
982 <+=?|> token : "constant.numeric", // hex
983 <+=?|> regex : "0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"
984 <+=?|>};
985  
986 <+=?|>var constantNumericFloat = exports.constantNumericFloat = {
987 <+=?|> token : "constant.numeric", // float
988 <+=?|> regex : "[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?\\b"
989 <+=?|>};
990  
991 <+=?|>var RubyHighlightRules = function() {
992  
993 <+=?|> var builtinFunctions = (
994 <+=?|> "abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|" +
995 <+=?|> "assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|" +
996 <+=?|> "assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|" +
997 <+=?|> "assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|" +
998 <+=?|> "assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|" +
999 <+=?|> "assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|" +
1000 <+=?|> "attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|" +
1001 <+=?|> "caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|" +
1002 <+=?|> "exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|" +
1003 <+=?|> "gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|" +
1004 <+=?|> "link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|" +
1005 <+=?|> "p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|" +
1006 <+=?|> "raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|" +
1007 <+=?|> "set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|" +
1008 <+=?|> "throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|" +
1009 <+=?|> "render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|" +
1010 <+=?|> "content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|" +
1011 <+=?|> "fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|" +
1012 <+=?|> "time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|" +
1013 <+=?|> "select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|" +
1014 <+=?|> "file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|" +
1015 <+=?|> "protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|" +
1016 <+=?|> "send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|" +
1017 <+=?|> "validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|" +
1018 <+=?|> "validates_inclusion_of|validates_numericality_of|validates_with|validates_each|" +
1019 <+=?|> "authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|" +
1020 <+=?|> "filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|" +
1021 <+=?|> "translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|" +
1022 <+=?|> "cache|expire_fragment|expire_cache_for|observe|cache_sweeper|" +
1023 <+=?|> "has_many|has_one|belongs_to|has_and_belongs_to_many"
1024 <+=?|> );
1025  
1026 <+=?|> var keywords = (
1027 <+=?|> "alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|" +
1028 <+=?|> "__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|" +
1029 <+=?|> "redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield"
1030 <+=?|> );
1031  
1032 <+=?|> var buildinConstants = (
1033 <+=?|> "true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|" +
1034 <+=?|> "RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING"
1035 <+=?|> );
1036  
1037 <+=?|> var builtinVariables = (
1038 <+=?|> "$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|" +
1039 <+=?|> "$!|root_url|flash|session|cookies|params|request|response|logger|self"
1040 <+=?|> );
1041  
1042 <+=?|> var keywordMapper = this.$keywords = this.createKeywordMapper({
1043 <+=?|> "keyword": keywords,
1044 <+=?|> "constant.language": buildinConstants,
1045 <+=?|> "variable.language": builtinVariables,
1046 <+=?|> "support.function": builtinFunctions,
1047 <+=?|> "invalid.deprecated": "debugger" // TODO is this a remnant from js mode?
1048 <+=?|> }, "identifier");
1049  
1050 <+=?|> this.$rules = {
1051 <+=?|> "start" : [
1052 <+=?|> {
1053 <+=?|> token : "comment",
1054 <+=?|> regex : "#.*$"
1055 <+=?|> }, {
1056 <+=?|> token : "comment", // multi line comment
1057 <+=?|> regex : "^=begin(?:$|\\s.*$)",
1058 <+=?|> next : "comment"
1059 <+=?|> }, {
1060 <+=?|> token : "string.regexp",
1061 <+=?|> regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
1062 <+=?|> },
1063  
1064 <+=?|> [{
1065 <+=?|> regex: "[{}]", onMatch: function(val, state, stack) {
1066 <+=?|> this.next = val == "{" ? this.nextState : "";
1067 <+=?|> if (val == "{" && stack.length) {
1068 <+=?|> stack.unshift("start", state);
1069 <+=?|> return "paren.lparen";
1070 <+=?|> }
1071 <+=?|> if (val == "}" && stack.length) {
1072 <+=?|> stack.shift();
1073 <+=?|> this.next = stack.shift();
1074 <+=?|> if (this.next.indexOf("string") != -1)
1075 <+=?|> return "paren.end";
1076 <+=?|> }
1077 <+=?|> return val == "{" ? "paren.lparen" : "paren.rparen";
1078 <+=?|> },
1079 <+=?|> nextState: "start"
1080 <+=?|> }, {
1081 <+=?|> token : "string.start",
1082 <+=?|> regex : /"/,
1083 <+=?|> push : [{
1084 <+=?|> token : "constant.language.escape",
1085 <+=?|> regex : /\\(?:[nsrtvfbae'"\\]|c.|C-.|M-.(?:\\C-.)?|[0-7]{3}|x[\da-fA-F]{2}|u[\da-fA-F]{4})/
1086 <+=?|> }, {
1087 <+=?|> token : "paren.start",
1088 <+=?|> regex : /#{/,
1089 <+=?|> push : "start"
1090 <+=?|> }, {
1091 <+=?|> token : "string.end",
1092 <+=?|> regex : /"/,
1093 <+=?|> next : "pop"
1094 <+=?|> }, {
1095 <+=?|> defaultToken: "string"
1096 <+=?|> }]
1097 <+=?|> }, {
1098 <+=?|> token : "string.start",
1099 <+=?|> regex : /`/,
1100 <+=?|> push : [{
1101 <+=?|> token : "constant.language.escape",
1102 <+=?|> regex : /\\(?:[nsrtvfbae'"\\]|c.|C-.|M-.(?:\\C-.)?|[0-7]{3}|x[\da-fA-F]{2}|u[\da-fA-F]{4})/
1103 <+=?|> }, {
1104 <+=?|> token : "paren.start",
1105 <+=?|> regex : /#{/,
1106 <+=?|> push : "start"
1107 <+=?|> }, {
1108 <+=?|> token : "string.end",
1109 <+=?|> regex : /`/,
1110 <+=?|> next : "pop"
1111 <+=?|> }, {
1112 <+=?|> defaultToken: "string"
1113 <+=?|> }]
1114 <+=?|> }, {
1115 <+=?|> token : "string.start",
1116 <+=?|> regex : /'/,
1117 <+=?|> push : [{
1118 <+=?|> token : "constant.language.escape",
1119 <+=?|> regex : /\\['\\]/
1120 <+=?|> }, {
1121 <+=?|> token : "string.end",
1122 <+=?|> regex : /'/,
1123 <+=?|> next : "pop"
1124 <+=?|> }, {
1125 <+=?|> defaultToken: "string"
1126 <+=?|> }]
1127 <+=?|> }],
1128  
1129 <+=?|> {
1130 <+=?|> token : "text", // namespaces aren't symbols
1131 <+=?|> regex : "::"
1132 <+=?|> }, {
1133 <+=?|> token : "variable.instance", // instance variable
1134 <+=?|> regex : "@{1,2}[a-zA-Z_\\d]+"
1135 <+=?|> }, {
1136 <+=?|> token : "support.class", // class name
1137 <+=?|> regex : "[A-Z][a-zA-Z_\\d]+"
1138 <+=?|> },
1139  
1140 <+=?|> constantOtherSymbol,
1141 <+=?|> constantNumericHex,
1142 <+=?|> constantNumericFloat,
1143  
1144 <+=?|> {
1145 <+=?|> token : "constant.language.boolean",
1146 <+=?|> regex : "(?:true|false)\\b"
1147 <+=?|> }, {
1148 <+=?|> token : keywordMapper,
1149 <+=?|> regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
1150 <+=?|> }, {
1151 <+=?|> token : "punctuation.separator.key-value",
1152 <+=?|> regex : "=>"
1153 <+=?|> }, {
1154 <+=?|> stateName: "heredoc",
1155 <+=?|> onMatch : function(value, currentState, stack) {
1156 <+=?|> var next = value[2] == '-' ? "indentedHeredoc" : "heredoc";
1157 <+=?|> var tokens = value.split(this.splitRegex);
1158 <+=?|> stack.push(next, tokens[3]);
1159 <+=?|> return [
1160 <+=?|> {type:"constant", value: tokens[1]},
1161 <+=?|> {type:"string", value: tokens[2]},
1162 <+=?|> {type:"support.class", value: tokens[3]},
1163 <+=?|> {type:"string", value: tokens[4]}
1164 <+=?|> ];
1165 <+=?|> },
1166 <+=?|> regex : "(<<-?)(['\"`]?)([\\w]+)(['\"`]?)",
1167 <+=?|> rules: {
1168 <+=?|> heredoc: [{
1169 <+=?|> onMatch: function(value, currentState, stack) {
1170 <+=?|> if (value === stack[1]) {
1171 <+=?|> stack.shift();
1172 <+=?|> stack.shift();
1173 <+=?|> this.next = stack[0] || "start";
1174 <+=?|> return "support.class";
1175 <+=?|> }
1176 <+=?|> this.next = "";
1177 <+=?|> return "string";
1178 <+=?|> },
1179 <+=?|> regex: ".*$",
1180 <+=?|> next: "start"
1181 <+=?|> }],
1182 <+=?|> indentedHeredoc: [{
1183 <+=?|> token: "string",
1184 <+=?|> regex: "^ +"
1185 <+=?|> }, {
1186 <+=?|> onMatch: function(value, currentState, stack) {
1187 <+=?|> if (value === stack[1]) {
1188 <+=?|> stack.shift();
1189 <+=?|> stack.shift();
1190 <+=?|> this.next = stack[0] || "start";
1191 <+=?|> return "support.class";
1192 <+=?|> }
1193 <+=?|> this.next = "";
1194 <+=?|> return "string";
1195 <+=?|> },
1196 <+=?|> regex: ".*$",
1197 <+=?|> next: "start"
1198 <+=?|> }]
1199 <+=?|> }
1200 <+=?|> }, {
1201 <+=?|> regex : "$",
1202 <+=?|> token : "empty",
1203 <+=?|> next : function(currentState, stack) {
1204 <+=?|> if (stack[0] === "heredoc" || stack[0] === "indentedHeredoc")
1205 <+=?|> return stack[0];
1206 <+=?|> return currentState;
1207 <+=?|> }
1208 <+=?|> }, {
1209 <+=?|> token : "string.character",
1210 <+=?|> regex : "\\B\\?."
1211 <+=?|> }, {
1212 <+=?|> token : "keyword.operator",
1213 <+=?|> regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"
1214 <+=?|> }, {
1215 <+=?|> token : "paren.lparen",
1216 <+=?|> regex : "[[({]"
1217 <+=?|> }, {
1218 <+=?|> token : "paren.rparen",
1219 <+=?|> regex : "[\\])}]"
1220 <+=?|> }, {
1221 <+=?|> token : "text",
1222 <+=?|> regex : "\\s+"
1223 <+=?|> }
1224 <+=?|> ],
1225 <+=?|> "comment" : [
1226 <+=?|> {
1227 <+=?|> token : "comment", // closing comment
1228 <+=?|> regex : "^=end(?:$|\\s.*$)",
1229 <+=?|> next : "start"
1230 <+=?|> }, {
1231 <+=?|> token : "comment", // comment spanning whole line
1232 <+=?|> regex : ".+"
1233 <+=?|> }
1234 <+=?|> ]
1235 <+=?|> };
1236  
1237 <+=?|> this.normalizeRules();
1238 <+=?|>};
1239  
1240 <+=?|>oop.inherits(RubyHighlightRules, TextHighlightRules);
1241  
1242 <+=?|>exports.RubyHighlightRules = RubyHighlightRules;
1243 <+=?|>});
1244  
1245 <+=?|>ace.define("ace/mode/haml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/html_highlight_rules","ace/mode/ruby_highlight_rules"], function(require, exports, module) {
1246 <+=?|>"use strict";
1247  
1248 <+=?|>var oop = require("../lib/oop");
1249 <+=?|>var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
1250 <+=?|>var RubyExports = require("./ruby_highlight_rules");
1251 <+=?|>var RubyHighlightRules = RubyExports.RubyHighlightRules;
1252  
1253 <+=?|>var HamlHighlightRules = function() {
1254 <+=?|> HtmlHighlightRules.call(this);
1255 <+=?|> this.$rules.start.unshift(
1256 <+=?|> {
1257 <+=?|> token : "punctuation.section.comment",
1258 <+=?|> regex : /^\s*\/.*/
1259 <+=?|> },
1260 <+=?|> {
1261 <+=?|> token: "string.quoted.double",
1262 <+=?|> regex: "==.+?=="
1263 <+=?|> },
1264 <+=?|> {
1265 <+=?|> token: "keyword.other.doctype",
1266 <+=?|> regex: "^!!!\\s*(?:[a-zA-Z0-9-_]+)?"
1267 <+=?|> },
1268 <+=?|> RubyExports.qString,
1269 <+=?|> RubyExports.qqString,
1270 <+=?|> RubyExports.tString,
1271 <+=?|> {
1272 <+=?|> token: "character.escape.haml",
1273 <+=?|> regex: "^\\s*\\\\."
1274 <+=?|> },
1275 <+=?|> {
1276 <+=?|> token: "text",
1277 <+=?|> regex: /^\s*/,
1278 <+=?|> next: "tag_single"
1279 <+=?|> },
1280 <+=?|> RubyExports.constantNumericHex,
1281 <+=?|> RubyExports.constantNumericFloat,
1282  
1283 <+=?|> RubyExports.constantOtherSymbol,
1284 <+=?|> {
1285 <+=?|> token: "text",
1286 <+=?|> regex: "=|-|~",
1287 <+=?|> next: "embedded_ruby"
1288 <+=?|> }
1289 <+=?|> );
1290 <+=?|> this.$rules.tag_single = [
1291 <+=?|> {
1292 <+=?|> token: "meta.tag.haml",
1293 <+=?|> regex: /(%[\w:\-]+)/
1294 <+=?|> },
1295 <+=?|> {
1296 <+=?|> token: "keyword.attribute-name.class.haml",
1297 <+=?|> regex: "\\.[\\w-]+"
1298 <+=?|> },
1299 <+=?|> {
1300 <+=?|> token: "keyword.attribute-name.id.haml",
1301 <+=?|> regex: "#[\\w-]+"
1302 <+=?|> },
1303 <+=?|> {
1304 <+=?|> token: "punctuation.section",
1305 <+=?|> regex: "\\{",
1306 <+=?|> next: "section"
1307 <+=?|> },
1308  
1309 <+=?|> RubyExports.constantOtherSymbol,
1310  
1311 <+=?|> {
1312 <+=?|> token: "text",
1313 <+=?|> regex: /\s/,
1314 <+=?|> next: "start"
1315 <+=?|> },
1316 <+=?|> {
1317 <+=?|> token: "empty",
1318 <+=?|> regex: "$|(?!\\.|#|\\{|\\[|=|-|~|\\/)",
1319 <+=?|> next: "start"
1320 <+=?|> }
1321 <+=?|> ];
1322 <+=?|> this.$rules.section = [
1323 <+=?|> RubyExports.constantOtherSymbol,
1324  
1325 <+=?|> RubyExports.qString,
1326 <+=?|> RubyExports.qqString,
1327 <+=?|> RubyExports.tString,
1328  
1329 <+=?|> RubyExports.constantNumericHex,
1330 <+=?|> RubyExports.constantNumericFloat,
1331 <+=?|> {
1332 <+=?|> token: "punctuation.section",
1333 <+=?|> regex: "\\}",
1334 <+=?|> next: "start"
1335 <+=?|> }
1336 <+=?|> ];
1337  
1338 <+=?|> this.$rules.embedded_ruby = [
1339 <+=?|> RubyExports.constantNumericHex,
1340 <+=?|> RubyExports.constantNumericFloat,
1341 <+=?|> {
1342 <+=?|> token : "support.class", // class name
1343 <+=?|> regex : "[A-Z][a-zA-Z_\\d]+"
1344 <+=?|> },
1345 <+=?|> {
1346 <+=?|> token : new RubyHighlightRules().getKeywords(),
1347 <+=?|> regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
1348 <+=?|> },
1349 <+=?|> {
1350 <+=?|> token : ["keyword", "text", "text"],
1351 <+=?|> regex : "(?:do|\\{)(?: \\|[^|]+\\|)?$",
1352 <+=?|> next : "start"
1353 <+=?|> },
1354 <+=?|> {
1355 <+=?|> token : ["text"],
1356 <+=?|> regex : "^$",
1357 <+=?|> next : "start"
1358 <+=?|> },
1359 <+=?|> {
1360 <+=?|> token : ["text"],
1361 <+=?|> regex : "^(?!.*\\|\\s*$)",
1362 <+=?|> next : "start"
1363 <+=?|> }
1364 <+=?|> ];
1365  
1366 <+=?|> this.normalizeRules();
1367 <+=?|>};
1368  
1369 <+=?|>oop.inherits(HamlHighlightRules, HtmlHighlightRules);
1370  
1371 <+=?|>exports.HamlHighlightRules = HamlHighlightRules;
1372 <+=?|>});
1373  
1374 <+=?|>ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {
1375 <+=?|>"use strict";
1376  
1377 <+=?|>var oop = require("../../lib/oop");
1378 <+=?|>var BaseFoldMode = require("./fold_mode").FoldMode;
1379 <+=?|>var Range = require("../../range").Range;
1380  
1381 <+=?|>var FoldMode = exports.FoldMode = function() {};
1382 <+=?|>oop.inherits(FoldMode, BaseFoldMode);
1383  
1384 <+=?|>(function() {
1385  
1386 <+=?|> this.getFoldWidgetRange = function(session, foldStyle, row) {
1387 <+=?|> var range = this.indentationBlock(session, row);
1388 <+=?|> if (range)
1389 <+=?|> return range;
1390  
1391 <+=?|> var re = /\S/;
1392 <+=?|> var line = session.getLine(row);
1393 <+=?|> var startLevel = line.search(re);
1394 <+=?|> if (startLevel == -1 || line[startLevel] != "#")
1395 <+=?|> return;
1396  
1397 <+=?|> var startColumn = line.length;
1398 <+=?|> var maxRow = session.getLength();
1399 <+=?|> var startRow = row;
1400 <+=?|> var endRow = row;
1401  
1402 <+=?|> while (++row < maxRow) {
1403 <+=?|> line = session.getLine(row);
1404 <+=?|> var level = line.search(re);
1405  
1406 <+=?|> if (level == -1)
1407 <+=?|> continue;
1408  
1409 <+=?|> if (line[level] != "#")
1410 <+=?|> break;
1411  
1412 <+=?|> endRow = row;
1413 <+=?|> }
1414  
1415 <+=?|> if (endRow > startRow) {
1416 <+=?|> var endColumn = session.getLine(endRow).length;
1417 <+=?|> return new Range(startRow, startColumn, endRow, endColumn);
1418 <+=?|> }
1419 <+=?|> };
1420 <+=?|> this.getFoldWidget = function(session, foldStyle, row) {
1421 <+=?|> var line = session.getLine(row);
1422 <+=?|> var indent = line.search(/\S/);
1423 <+=?|> var next = session.getLine(row + 1);
1424 <+=?|> var prev = session.getLine(row - 1);
1425 <+=?|> var prevIndent = prev.search(/\S/);
1426 <+=?|> var nextIndent = next.search(/\S/);
1427  
1428 <+=?|> if (indent == -1) {
1429 <+=?|> session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
1430 <+=?|> return "";
1431 <+=?|> }
1432 <+=?|> if (prevIndent == -1) {
1433 <+=?|> if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
1434 <+=?|> session.foldWidgets[row - 1] = "";
1435 <+=?|> session.foldWidgets[row + 1] = "";
1436 <+=?|> return "start";
1437 <+=?|> }
1438 <+=?|> } else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
1439 <+=?|> if (session.getLine(row - 2).search(/\S/) == -1) {
1440 <+=?|> session.foldWidgets[row - 1] = "start";
1441 <+=?|> session.foldWidgets[row + 1] = "";
1442 <+=?|> return "";
1443 <+=?|> }
1444 <+=?|> }
1445  
1446 <+=?|> if (prevIndent!= -1 && prevIndent < indent)
1447 <+=?|> session.foldWidgets[row - 1] = "start";
1448 <+=?|> else
1449 <+=?|> session.foldWidgets[row - 1] = "";
1450  
1451 <+=?|> if (indent < nextIndent)
1452 <+=?|> return "start";
1453 <+=?|> else
1454 <+=?|> return "";
1455 <+=?|> };
1456  
1457 <+=?|>}).call(FoldMode.prototype);
1458  
1459 <+=?|>});
1460  
1461 <+=?|>ace.define("ace/mode/haml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/haml_highlight_rules","ace/mode/folding/coffee"], function(require, exports, module) {
1462 <+=?|>"use strict";
1463  
1464 <+=?|>var oop = require("../lib/oop");
1465 <+=?|>var TextMode = require("./text").Mode;
1466 <+=?|>var HamlHighlightRules = require("./haml_highlight_rules").HamlHighlightRules;
1467 <+=?|>var FoldMode = require("./folding/coffee").FoldMode;
1468  
1469 <+=?|>var Mode = function() {
1470 <+=?|> this.HighlightRules = HamlHighlightRules;
1471 <+=?|> this.foldingRules = new FoldMode();
1472 <+=?|> this.$behaviour = this.$defaultBehaviour;
1473 <+=?|>};
1474 <+=?|>oop.inherits(Mode, TextMode);
1475  
1476 <+=?|>(function() {
1477 <+=?|> this.lineCommentStart = "//";
1478  
1479 <+=?|> this.$id = "ace/mode/haml";
1480 <+=?|>}).call(Mode.prototype);
1481  
1482 <+=?|>exports.Mode = Mode;
1483 <+=?|>});