corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 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 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 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 <+=?|>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 <+=?|>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 <+=?|>define("ace/mode/ftl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/html_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
957 <+=?|>"use strict";
958  
959 <+=?|>var oop = require("../lib/oop");
960 <+=?|>var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
961 <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
962  
963 <+=?|>var FtlLangHighlightRules = function () {
964  
965 <+=?|> var stringBuiltIns = "\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|"
966 <+=?|> + "ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|"
967 <+=?|> + "left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|"
968 <+=?|> + "upper_case|word_list|xhtml|xml";
969 <+=?|> var numberBuiltIns = "c|round|floor|ceiling";
970 <+=?|> var dateBuiltIns = "iso_[a-z_]+";
971 <+=?|> var seqBuiltIns = "first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunk";
972 <+=?|> var hashBuiltIns = "keys|values";
973 <+=?|> var xmlBuiltIns = "children|parent|root|ancestors|node_name|node_type|node_namespace";
974 <+=?|> var expertBuiltIns = "byte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|"
975 <+=?|> + "eval|has_content|interpret|is_[a-z_]+|namespacenew";
976 <+=?|> var allBuiltIns = stringBuiltIns + numberBuiltIns + dateBuiltIns + seqBuiltIns + hashBuiltIns
977 <+=?|> + xmlBuiltIns + expertBuiltIns;
978  
979 <+=?|> var deprecatedBuiltIns = "default|exists|if_exists|web_safe";
980  
981 <+=?|> var variables = "data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|"
982 <+=?|> + "now|output_encoding|template_name|url_escaping_charset|vars|version";
983  
984 <+=?|> var operators = "gt|gte|lt|lte|as|in|using";
985  
986 <+=?|> var reserved = "true|false";
987  
988 <+=?|> var attributes = "encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|"
989 <+=?|> + "url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|"
990 <+=?|> + "attributes";
991  
992 <+=?|> this.$rules = {
993 <+=?|> "start" : [{
994 <+=?|> token : "constant.character.entity",
995 <+=?|> regex : /&[^;]+;/
996 <+=?|> }, {
997 <+=?|> token : "support.function",
998 <+=?|> regex : "\\?("+allBuiltIns+")"
999 <+=?|> }, {
1000 <+=?|> token : "support.function.deprecated",
1001 <+=?|> regex : "\\?("+deprecatedBuiltIns+")"
1002 <+=?|> }, {
1003 <+=?|> token : "language.variable",
1004 <+=?|> regex : "\\.(?:"+variables+")"
1005 <+=?|> }, {
1006 <+=?|> token : "constant.language",
1007 <+=?|> regex : "\\b("+reserved+")\\b"
1008 <+=?|> }, {
1009 <+=?|> token : "keyword.operator",
1010 <+=?|> regex : "\\b(?:"+operators+")\\b"
1011 <+=?|> }, {
1012 <+=?|> token : "entity.other.attribute-name",
1013 <+=?|> regex : attributes
1014 <+=?|> }, {
1015 <+=?|> token : "string", //
1016 <+=?|> regex : /['"]/,
1017 <+=?|> next : "qstring"
1018 <+=?|> }, {
1019 <+=?|> token : function(value) {
1020 <+=?|> if (value.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")) {
1021 <+=?|> return "constant.numeric";
1022 <+=?|> } else {
1023 <+=?|> return "variable";
1024 <+=?|> }
1025 <+=?|> },
1026 <+=?|> regex : /[\w.+\-]+/
1027 <+=?|> }, {
1028 <+=?|> token : "keyword.operator",
1029 <+=?|> regex : "!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="
1030 <+=?|> }, {
1031 <+=?|> token : "paren.lparen",
1032 <+=?|> regex : "[[({]"
1033 <+=?|> }, {
1034 <+=?|> token : "paren.rparen",
1035 <+=?|> regex : "[\\])}]"
1036 <+=?|> }, {
1037 <+=?|> token : "text",
1038 <+=?|> regex : "\\s+"
1039 <+=?|> }],
1040  
1041 <+=?|> "qstring" : [{
1042 <+=?|> token : "constant.character.escape",
1043 <+=?|> regex : '\\\\[nrtvef\\\\"$]'
1044 <+=?|> }, {
1045 <+=?|> token : "string",
1046 <+=?|> regex : /['"]/,
1047 <+=?|> next : "start"
1048 <+=?|> }, {
1049 <+=?|> defaultToken : "string"
1050 <+=?|> }]
1051 <+=?|> };
1052 <+=?|>};
1053  
1054 <+=?|>oop.inherits(FtlLangHighlightRules, TextHighlightRules);
1055  
1056 <+=?|>var FtlHighlightRules = function() {
1057 <+=?|> HtmlHighlightRules.call(this);
1058  
1059 <+=?|> var directives = "assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|"
1060 <+=?|> + "ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|"
1061 <+=?|> + "setting|stop|switch|t|visit";
1062  
1063 <+=?|> var startRules = [
1064 <+=?|> {
1065 <+=?|> token : "comment",
1066 <+=?|> regex : "<#--",
1067 <+=?|> next : "ftl-dcomment"
1068 <+=?|> }, {
1069 <+=?|> token : "string.interpolated",
1070 <+=?|> regex : "\\${",
1071 <+=?|> push : "ftl-start"
1072 <+=?|> }, {
1073 <+=?|> token : "keyword.function",
1074 <+=?|> regex : "</?#("+directives+")",
1075 <+=?|> push : "ftl-start"
1076 <+=?|> }, {
1077 <+=?|> token : "keyword.other",
1078 <+=?|> regex : "</?@[a-zA-Z\\.]+",
1079 <+=?|> push : "ftl-start"
1080 <+=?|> }
1081 <+=?|> ];
1082  
1083 <+=?|> var endRules = [
1084 <+=?|> {
1085 <+=?|> token : "keyword",
1086 <+=?|> regex : "/?>",
1087 <+=?|> next : "pop"
1088 <+=?|> }, {
1089 <+=?|> token : "string.interpolated",
1090 <+=?|> regex : "}",
1091 <+=?|> next : "pop"
1092 <+=?|> }
1093 <+=?|> ];
1094  
1095 <+=?|> for (var key in this.$rules)
1096 <+=?|> this.$rules[key].unshift.apply(this.$rules[key], startRules);
1097  
1098 <+=?|> this.embedRules(FtlLangHighlightRules, "ftl-", endRules, ["start"]);
1099  
1100 <+=?|> this.addRules({
1101 <+=?|> "ftl-dcomment" : [{
1102 <+=?|> token : "comment",
1103 <+=?|> regex : ".*?-->",
1104 <+=?|> next : "pop"
1105 <+=?|> }, {
1106 <+=?|> token : "comment",
1107 <+=?|> regex : ".+"
1108 <+=?|> }]
1109 <+=?|> });
1110  
1111 <+=?|> this.normalizeRules();
1112 <+=?|>};
1113  
1114 <+=?|>oop.inherits(FtlHighlightRules, HtmlHighlightRules);
1115  
1116 <+=?|>exports.FtlHighlightRules = FtlHighlightRules;
1117 <+=?|>});
1118  
1119 <+=?|>define("ace/mode/ftl",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ftl_highlight_rules"], function(require, exports, module) {
1120 <+=?|>"use strict";
1121  
1122 <+=?|>var oop = require("../lib/oop");
1123 <+=?|>var TextMode = require("./text").Mode;
1124 <+=?|>var FtlHighlightRules = require("./ftl_highlight_rules").FtlHighlightRules;
1125  
1126 <+=?|>var Mode = function() {
1127 <+=?|> this.HighlightRules = FtlHighlightRules;
1128 <+=?|> this.$behaviour = this.$defaultBehaviour;
1129 <+=?|>};
1130 <+=?|>oop.inherits(Mode, TextMode);
1131  
1132 <+=?|>(function() {
1133  
1134 <+=?|> this.$id = "ace/mode/ftl";
1135 <+=?|>}).call(Mode.prototype);
1136  
1137 <+=?|>exports.Mode = Mode;
1138 <+=?|>});