corrade-nucleus-nucleons – Blame information for rev 24
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { |
2 | "use strict"; |
||
3 | |||
4 | var oop = require("../lib/oop"); |
||
5 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; |
||
6 | |||
7 | var DocCommentHighlightRules = function() { |
||
8 | this.$rules = { |
||
9 | "start" : [ { |
||
10 | token : "comment.doc.tag", |
||
11 | regex : "@[\\w\\d_]+" // TODO: fix email addresses |
||
12 | }, |
||
13 | DocCommentHighlightRules.getTagRule(), |
||
14 | { |
||
15 | defaultToken : "comment.doc", |
||
16 | caseInsensitive: true |
||
17 | }] |
||
18 | }; |
||
19 | }; |
||
20 | |||
21 | oop.inherits(DocCommentHighlightRules, TextHighlightRules); |
||
22 | |||
23 | DocCommentHighlightRules.getTagRule = function(start) { |
||
24 | return { |
||
25 | token : "comment.doc.tag.storage.type", |
||
26 | regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b" |
||
27 | }; |
||
28 | } |
||
29 | |||
30 | DocCommentHighlightRules.getStartRule = function(start) { |
||
31 | return { |
||
32 | token : "comment.doc", // doc comment |
||
33 | regex : "\\/\\*(?=\\*)", |
||
34 | next : start |
||
35 | }; |
||
36 | }; |
||
37 | |||
38 | DocCommentHighlightRules.getEndRule = function (start) { |
||
39 | return { |
||
40 | token : "comment.doc", // closing comment |
||
41 | regex : "\\*\\/", |
||
42 | next : start |
||
43 | }; |
||
44 | }; |
||
45 | |||
46 | |||
47 | exports.DocCommentHighlightRules = DocCommentHighlightRules; |
||
48 | |||
49 | }); |
||
50 | |||
51 | 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) { |
||
52 | "use strict"; |
||
53 | |||
54 | var oop = require("../lib/oop"); |
||
55 | var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules; |
||
56 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; |
||
57 | var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*"; |
||
58 | |||
59 | var JavaScriptHighlightRules = function(options) { |
||
60 | var keywordMapper = this.createKeywordMapper({ |
||
61 | "variable.language": |
||
62 | "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors |
||
63 | "Namespace|QName|XML|XMLList|" + // E4X |
||
64 | "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" + |
||
65 | "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" + |
||
66 | "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors |
||
67 | "SyntaxError|TypeError|URIError|" + |
||
68 | "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions |
||
69 | "isNaN|parseFloat|parseInt|" + |
||
70 | "JSON|Math|" + // Other |
||
71 | "this|arguments|prototype|window|document" , // Pseudo |
||
72 | "keyword": |
||
73 | "const|yield|import|get|set|async|await|" + |
||
74 | "break|case|catch|continue|default|delete|do|else|finally|for|function|" + |
||
75 | "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" + |
||
76 | "__parent__|__count__|escape|unescape|with|__proto__|" + |
||
77 | "class|enum|extends|super|export|implements|private|public|interface|package|protected|static", |
||
78 | "storage.type": |
||
79 | "const|let|var|function", |
||
80 | "constant.language": |
||
81 | "null|Infinity|NaN|undefined", |
||
82 | "support.function": |
||
83 | "alert", |
||
84 | "constant.language.boolean": "true|false" |
||
85 | }, "identifier"); |
||
86 | var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void"; |
||
87 | |||
88 | var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex |
||
89 | "u[0-9a-fA-F]{4}|" + // unicode |
||
90 | "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode |
||
91 | "[0-2][0-7]{0,2}|" + // oct |
||
92 | "3[0-7][0-7]?|" + // oct |
||
93 | "[4-7][0-7]?|" + //oct |
||
94 | ".)"; |
||
95 | |||
96 | this.$rules = { |
||
97 | "no_regex" : [ |
||
98 | DocCommentHighlightRules.getStartRule("doc-start"), |
||
99 | comments("no_regex"), |
||
100 | { |
||
101 | token : "string", |
||
102 | regex : "'(?=.)", |
||
103 | next : "qstring" |
||
104 | }, { |
||
105 | token : "string", |
||
106 | regex : '"(?=.)', |
||
107 | next : "qqstring" |
||
108 | }, { |
||
109 | token : "constant.numeric", // hex |
||
110 | regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/ |
||
111 | }, { |
||
112 | token : "constant.numeric", // float |
||
113 | regex : /[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/ |
||
114 | }, { |
||
115 | token : [ |
||
116 | "storage.type", "punctuation.operator", "support.function", |
||
117 | "punctuation.operator", "entity.name.function", "text","keyword.operator" |
||
118 | ], |
||
119 | regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)", |
||
120 | next: "function_arguments" |
||
121 | }, { |
||
122 | token : [ |
||
123 | "storage.type", "punctuation.operator", "entity.name.function", "text", |
||
124 | "keyword.operator", "text", "storage.type", "text", "paren.lparen" |
||
125 | ], |
||
126 | regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()", |
||
127 | next: "function_arguments" |
||
128 | }, { |
||
129 | token : [ |
||
130 | "entity.name.function", "text", "keyword.operator", "text", "storage.type", |
||
131 | "text", "paren.lparen" |
||
132 | ], |
||
133 | regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()", |
||
134 | next: "function_arguments" |
||
135 | }, { |
||
136 | token : [ |
||
137 | "storage.type", "punctuation.operator", "entity.name.function", "text", |
||
138 | "keyword.operator", "text", |
||
139 | "storage.type", "text", "entity.name.function", "text", "paren.lparen" |
||
140 | ], |
||
141 | regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()", |
||
142 | next: "function_arguments" |
||
143 | }, { |
||
144 | token : [ |
||
145 | "storage.type", "text", "entity.name.function", "text", "paren.lparen" |
||
146 | ], |
||
147 | regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()", |
||
148 | next: "function_arguments" |
||
149 | }, { |
||
150 | token : [ |
||
151 | "entity.name.function", "text", "punctuation.operator", |
||
152 | "text", "storage.type", "text", "paren.lparen" |
||
153 | ], |
||
154 | regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()", |
||
155 | next: "function_arguments" |
||
156 | }, { |
||
157 | token : [ |
||
158 | "text", "text", "storage.type", "text", "paren.lparen" |
||
159 | ], |
||
160 | regex : "(:)(\\s*)(function)(\\s*)(\\()", |
||
161 | next: "function_arguments" |
||
162 | }, { |
||
163 | token : "keyword", |
||
164 | regex : "(?:" + kwBeforeRe + ")\\b", |
||
165 | next : "start" |
||
166 | }, { |
||
167 | token : ["support.constant"], |
||
168 | regex : /that\b/ |
||
169 | }, { |
||
170 | token : ["storage.type", "punctuation.operator", "support.function.firebug"], |
||
171 | regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/ |
||
172 | }, { |
||
173 | token : keywordMapper, |
||
174 | regex : identifierRe |
||
175 | }, { |
||
176 | token : "punctuation.operator", |
||
177 | regex : /[.](?![.])/, |
||
178 | next : "property" |
||
179 | }, { |
||
180 | token : "keyword.operator", |
||
181 | regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,+=?|> |
||
182 | <+=?|> next : "start"+=?|> |
||
183 | <+=?|> }, {+=?|> |
||
184 | <+=?|> token : "punctuation.operator",+=?|> |
||
185 | <+=?|> regex : /[?:,;.]/,+=?|> |
||
186 | <+=?|> next : "start"+=?|> |
||
187 | <+=?|> }, {+=?|> |
||
188 | <+=?|> token : "paren.lparen",+=?|> |
||
189 | <+=?|> regex : /[\[({]/,+=?|> |
||
190 | <+=?|> next : "start"+=?|> |
||
191 | <+=?|> }, {+=?|> |
||
192 | <+=?|> token : "paren.rparen",+=?|> |
||
193 | <+=?|> regex : /[\])}]/+=?|> |
||
194 | <+=?|> }, {+=?|> |
||
195 | <+=?|> token: "comment",+=?|> |
||
196 | <+=?|> regex: /^#!.*$/+=?|> |
||
197 | <+=?|> }+=?|> |
||
198 | <+=?|> ],+=?|> |
||
199 | <+=?|> property: [{+=?|> |
||
200 | <+=?|> token : "text",+=?|> |
||
201 | <+=?|> regex : "\\s+"+=?|> |
||
202 | <+=?|> }, {+=?|> |
||
203 | <+=?|> token : [+=?|> |
||
204 | <+=?|> "storage.type", "punctuation.operator", "entity.name.function", "text",+=?|> |
||
205 | <+=?|> "keyword.operator", "text",+=?|> |
||
206 | <+=?|> "storage.type", "text", "entity.name.function", "text", "paren.lparen"+=?|> |
||
207 | <+=?|> ],+=?|> |
||
208 | <+=?|> regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",+=?|> |
||
209 | <+=?|> next: "function_arguments"+=?|> |
||
210 | <+=?|> }, {+=?|> |
||
211 | <+=?|> token : "punctuation.operator",+=?|> |
||
212 | <+=?|> regex : /[.](?![.])/+=?|> |
||
213 | <+=?|> }, {+=?|> |
||
214 | <+=?|> token : "support.function",+=?|> |
||
215 | <+=?|> 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(?=\()/+=?|> |
||
216 | <+=?|> }, {+=?|> |
||
217 | <+=?|> token : "support.function.dom",+=?|> |
||
218 | <+=?|> 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(?=\()/+=?|> |
||
219 | <+=?|> }, {+=?|> |
||
220 | <+=?|> token : "support.constant",+=?|> |
||
221 | <+=?|> 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/+=?|> |
||
222 | <+=?|> }, {+=?|> |
||
223 | <+=?|> token : "identifier",+=?|> |
||
224 | <+=?|> regex : identifierRe+=?|> |
||
225 | <+=?|> }, {+=?|> |
||
226 | <+=?|> regex: "",+=?|> |
||
227 | <+=?|> token: "empty",+=?|> |
||
228 | <+=?|> next: "no_regex"+=?|> |
||
229 | <+=?|> }+=?|> |
||
230 | <+=?|> ],+=?|> |
||
231 | <+=?|> "start": [+=?|> |
||
232 | <+=?|> DocCommentHighlightRules.getStartRule("doc-start"),+=?|> |
||
233 | <+=?|> comments("start"),+=?|> |
||
234 | <+=?|> {+=?|> |
||
235 | <+=?|> token: "string.regexp",+=?|> |
||
236 | <+=?|> regex: "\\/",+=?|> |
||
237 | <+=?|> next: "regex"+=?|> |
||
238 | <+=?|> }, {+=?|> |
||
239 | <+=?|> token : "text",+=?|> |
||
240 | <+=?|> regex : "\\s+|^$",+=?|> |
||
241 | <+=?|> next : "start"+=?|> |
||
242 | <+=?|> }, {+=?|> |
||
243 | <+=?|> token: "empty",+=?|> |
||
244 | <+=?|> regex: "",+=?|> |
||
245 | <+=?|> next: "no_regex"+=?|> |
||
246 | <+=?|> }+=?|> |
||
247 | <+=?|> ],+=?|> |
||
248 | <+=?|> "regex": [+=?|> |
||
249 | <+=?|> {+=?|> |
||
250 | <+=?|> token: "regexp.keyword.operator",+=?|> |
||
251 | <+=?|> regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"+=?|> |
||
252 | <+=?|> }, {+=?|> |
||
253 | <+=?|> token: "string.regexp",+=?|> |
||
254 | <+=?|> regex: "/[sxngimy]*",+=?|> |
||
255 | <+=?|> next: "no_regex"+=?|> |
||
256 | <+=?|> }, {+=?|> |
||
257 | <+=?|> token : "invalid",+=?|> |
||
258 | <+=?|> regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/+=?|> |
||
259 | <+=?|> }, {+=?|> |
||
260 | <+=?|> token : "constant.language.escape",+=?|> |
||
261 | <+=?|> regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/+=?|> |
||
262 | <+=?|> }, {+=?|> |
||
263 | <+=?|> token : "constant.language.delimiter",+=?|> |
||
264 | <+=?|> regex: /\|/+=?|> |
||
265 | <+=?|> }, {+=?|> |
||
266 | <+=?|> token: "constant.language.escape",+=?|> |
||
267 | <+=?|> regex: /\[\^?/,+=?|> |
||
268 | <+=?|> next: "regex_character_class"+=?|> |
||
269 | <+=?|> }, {+=?|> |
||
270 | <+=?|> token: "empty",+=?|> |
||
271 | <+=?|> regex: "$",+=?|> |
||
272 | <+=?|> next: "no_regex"+=?|> |
||
273 | <+=?|> }, {+=?|> |
||
274 | <+=?|> defaultToken: "string.regexp"+=?|> |
||
275 | <+=?|> }+=?|> |
||
276 | <+=?|> ],+=?|> |
||
277 | <+=?|> "regex_character_class": [+=?|> |
||
278 | <+=?|> {+=?|> |
||
279 | <+=?|> token: "regexp.charclass.keyword.operator",+=?|> |
||
280 | <+=?|> regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"+=?|> |
||
281 | <+=?|> }, {+=?|> |
||
282 | <+=?|> token: "constant.language.escape",+=?|> |
||
283 | <+=?|> regex: "]",+=?|> |
||
284 | <+=?|> next: "regex"+=?|> |
||
285 | <+=?|> }, {+=?|> |
||
286 | <+=?|> token: "constant.language.escape",+=?|> |
||
287 | <+=?|> regex: "-"+=?|> |
||
288 | <+=?|> }, {+=?|> |
||
289 | <+=?|> token: "empty",+=?|> |
||
290 | <+=?|> regex: "$",+=?|> |
||
291 | <+=?|> next: "no_regex"+=?|> |
||
292 | <+=?|> }, {+=?|> |
||
293 | <+=?|> defaultToken: "string.regexp.charachterclass"+=?|> |
||
294 | <+=?|> }+=?|> |
||
295 | <+=?|> ],+=?|> |
||
296 | <+=?|> "function_arguments": [+=?|> |
||
297 | <+=?|> {+=?|> |
||
298 | <+=?|> token: "variable.parameter",+=?|> |
||
299 | <+=?|> regex: identifierRe+=?|> |
||
300 | <+=?|> }, {+=?|> |
||
301 | <+=?|> token: "punctuation.operator",+=?|> |
||
302 | <+=?|> regex: "[, ]+"+=?|> |
||
303 | <+=?|> }, {+=?|> |
||
304 | <+=?|> token: "punctuation.operator",+=?|> |
||
305 | <+=?|> regex: "$"+=?|> |
||
306 | <+=?|> }, {+=?|> |
||
307 | <+=?|> token: "empty",+=?|> |
||
308 | <+=?|> regex: "",+=?|> |
||
309 | <+=?|> next: "no_regex"+=?|> |
||
310 | <+=?|> }+=?|> |
||
311 | <+=?|> ],+=?|> |
||
312 | <+=?|> "qqstring" : [+=?|> |
||
313 | <+=?|> {+=?|> |
||
314 | <+=?|> token : "constant.language.escape",+=?|> |
||
315 | <+=?|> regex : escapedRe+=?|> |
||
316 | <+=?|> }, {+=?|> |
||
317 | <+=?|> token : "string",+=?|> |
||
318 | <+=?|> regex : "\\\\$",+=?|> |
||
319 | <+=?|> next : "qqstring"+=?|> |
||
320 | <+=?|> }, {+=?|> |
||
321 | <+=?|> token : "string",+=?|> |
||
322 | <+=?|> regex : '"|$',+=?|> |
||
323 | <+=?|> next : "no_regex"+=?|> |
||
324 | <+=?|> }, {+=?|> |
||
325 | <+=?|> defaultToken: "string"+=?|> |
||
326 | <+=?|> }+=?|> |
||
327 | <+=?|> ],+=?|> |
||
328 | <+=?|> "qstring" : [+=?|> |
||
329 | <+=?|> {+=?|> |
||
330 | <+=?|> token : "constant.language.escape",+=?|> |
||
331 | <+=?|> regex : escapedRe+=?|> |
||
332 | <+=?|> }, {+=?|> |
||
333 | <+=?|> token : "string",+=?|> |
||
334 | <+=?|> regex : "\\\\$",+=?|> |
||
335 | <+=?|> next : "qstring"+=?|> |
||
336 | <+=?|> }, {+=?|> |
||
337 | <+=?|> token : "string",+=?|> |
||
338 | <+=?|> regex : "'|$",+=?|> |
||
339 | <+=?|> next : "no_regex"+=?|> |
||
340 | <+=?|> }, {+=?|> |
||
341 | <+=?|> defaultToken: "string"+=?|> |
||
342 | <+=?|> }+=?|> |
||
343 | <+=?|> ]+=?|> |
||
344 | <+=?|> };+=?|> |
||
345 | |||
346 | |||
347 | <+=?|> if (!options || !options.noES6) {+=?|> |
||
348 | <+=?|> this.$rules.no_regex.unshift({+=?|> |
||
349 | <+=?|> regex: "[{}]", onMatch: function(val, state, stack) {+=?|> |
||
350 | <+=?|> this.next = val == "{" ? this.nextState : "";+=?|> |
||
351 | <+=?|> if (val == "{" && stack.length) {+=?|> |
||
352 | <+=?|> stack.unshift("start", state);+=?|> |
||
353 | <+=?|> }+=?|> |
||
354 | <+=?|> else if (val == "}" && stack.length) {+=?|> |
||
355 | <+=?|> stack.shift();+=?|> |
||
356 | <+=?|> this.next = stack.shift();+=?|> |
||
357 | <+=?|> if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)+=?|> |
||
358 | <+=?|> return "paren.quasi.end";+=?|> |
||
359 | <+=?|> }+=?|> |
||
360 | <+=?|> return val == "{" ? "paren.lparen" : "paren.rparen";+=?|> |
||
361 | <+=?|> },+=?|> |
||
362 | <+=?|> nextState: "start"+=?|> |
||
363 | <+=?|> }, {+=?|> |
||
364 | <+=?|> token : "string.quasi.start",+=?|> |
||
365 | <+=?|> regex : /`/,+=?|> |
||
366 | <+=?|> push : [{+=?|> |
||
367 | <+=?|> token : "constant.language.escape",+=?|> |
||
368 | <+=?|> regex : escapedRe+=?|> |
||
369 | <+=?|> }, {+=?|> |
||
370 | <+=?|> token : "paren.quasi.start",+=?|> |
||
371 | <+=?|> regex : /\${/,+=?|> |
||
372 | <+=?|> push : "start"+=?|> |
||
373 | <+=?|> }, {+=?|> |
||
374 | <+=?|> token : "string.quasi.end",+=?|> |
||
375 | <+=?|> regex : /`/,+=?|> |
||
376 | <+=?|> next : "pop"+=?|> |
||
377 | <+=?|> }, {+=?|> |
||
378 | <+=?|> defaultToken: "string.quasi"+=?|> |
||
379 | <+=?|> }]+=?|> |
||
380 | <+=?|> });+=?|> |
||
381 | |||
382 | <+=?|> if (!options || options.jsx != false)+=?|> |
||
383 | <+=?|> JSX.call(this);+=?|> |
||
384 | <+=?|> }+=?|> |
||
385 | |||
386 | <+=?|> this.embedRules(DocCommentHighlightRules, "doc-",+=?|> |
||
387 | <+=?|> [ DocCommentHighlightRules.getEndRule("no_regex") ]);+=?|> |
||
388 | |||
389 | <+=?|> this.normalizeRules();+=?|> |
||
390 | <+=?|>};+=?|> |
||
391 | |||
392 | <+=?|>oop.inherits(JavaScriptHighlightRules, TextHighlightRules);+=?|> |
||
393 | |||
394 | <+=?|>function JSX() {+=?|> |
||
395 | <+=?|> var tagRegex = identifierRe.replace("\\d", "\\d\\-");+=?|> |
||
396 | <+=?|> var jsxTag = {+=?|> |
||
397 | <+=?|> onMatch : function(val, state, stack) {+=?|> |
||
398 | <+=?|> var offset = val.charAt(1) == "/" ? 2 : 1;+=?|> |
||
399 | <+=?|> if (offset == 1) {+=?|> |
||
400 | <+=?|> if (state != this.nextState)+=?|> |
||
401 | <+=?|> stack.unshift(this.next, this.nextState, 0);+=?|> |
||
402 | <+=?|> else+=?|> |
||
403 | <+=?|> stack.unshift(this.next);+=?|> |
||
404 | <+=?|> stack[2]++;+=?|> |
||
405 | <+=?|> } else if (offset == 2) {+=?|> |
||
406 | <+=?|> if (state == this.nextState) {+=?|> |
||
407 | <+=?|> stack[1]--;+=?|> |
||
408 | <+=?|> if (!stack[1] || stack[1] < 0) {+=?|> |
||
409 | <+=?|> stack.shift();+=?|> |
||
410 | <+=?|> stack.shift();+=?|> |
||
411 | <+=?|> }+=?|> |
||
412 | <+=?|> }+=?|> |
||
413 | <+=?|> }+=?|> |
||
414 | <+=?|> return [{+=?|> |
||
415 | <+=?|> type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",+=?|> |
||
416 | <+=?|> value: val.slice(0, offset)+=?|> |
||
417 | <+=?|> }, {+=?|> |
||
418 | <+=?|> type: "meta.tag.tag-name.xml",+=?|> |
||
419 | <+=?|> value: val.substr(offset)+=?|> |
||
420 | <+=?|> }];+=?|> |
||
421 | <+=?|> },+=?|> |
||
422 | <+=?|> regex : "</?" + tagRegex + "",+=?|> |
||
423 | <+=?|> next: "jsxAttributes",+=?|> |
||
424 | <+=?|> nextState: "jsx"+=?|> |
||
425 | <+=?|> };+=?|> |
||
426 | <+=?|> this.$rules.start.unshift(jsxTag);+=?|> |
||
427 | <+=?|> var jsxJsRule = {+=?|> |
||
428 | <+=?|> regex: "{",+=?|> |
||
429 | <+=?|> token: "paren.quasi.start",+=?|> |
||
430 | <+=?|> push: "start"+=?|> |
||
431 | <+=?|> };+=?|> |
||
432 | <+=?|> this.$rules.jsx = [+=?|> |
||
433 | <+=?|> jsxJsRule,+=?|> |
||
434 | <+=?|> jsxTag,+=?|> |
||
435 | <+=?|> {include : "reference"},+=?|> |
||
436 | <+=?|> {defaultToken: "string"}+=?|> |
||
437 | <+=?|> ];+=?|> |
||
438 | <+=?|> this.$rules.jsxAttributes = [{+=?|> |
||
439 | <+=?|> token : "meta.tag.punctuation.tag-close.xml", +=?|> |
||
440 | <+=?|> regex : "/?>", +=?|> |
||
441 | <+=?|> onMatch : function(value, currentState, stack) {+=?|> |
||
442 | <+=?|> if (currentState == stack[0])+=?|> |
||
443 | <+=?|> stack.shift();+=?|> |
||
444 | <+=?|> if (value.length == 2) {+=?|> |
||
445 | <+=?|> if (stack[0] == this.nextState)+=?|> |
||
446 | <+=?|> stack[1]--;+=?|> |
||
447 | <+=?|> if (!stack[1] || stack[1] < 0) {+=?|> |
||
448 | <+=?|> stack.splice(0, 2);+=?|> |
||
449 | <+=?|> }+=?|> |
||
450 | <+=?|> }+=?|> |
||
451 | <+=?|> this.next = stack[0] || "start";+=?|> |
||
452 | <+=?|> return [{type: this.token, value: value}];+=?|> |
||
453 | <+=?|> },+=?|> |
||
454 | <+=?|> nextState: "jsx"+=?|> |
||
455 | <+=?|> }, +=?|> |
||
456 | <+=?|> jsxJsRule,+=?|> |
||
457 | <+=?|> comments("jsxAttributes"),+=?|> |
||
458 | <+=?|> {+=?|> |
||
459 | <+=?|> token : "entity.other.attribute-name.xml",+=?|> |
||
460 | <+=?|> regex : tagRegex+=?|> |
||
461 | <+=?|> }, {+=?|> |
||
462 | <+=?|> token : "keyword.operator.attribute-equals.xml",+=?|> |
||
463 | <+=?|> regex : "="+=?|> |
||
464 | <+=?|> }, {+=?|> |
||
465 | <+=?|> token : "text.tag-whitespace.xml",+=?|> |
||
466 | <+=?|> regex : "\\s+"+=?|> |
||
467 | <+=?|> }, {+=?|> |
||
468 | <+=?|> token : "string.attribute-value.xml",+=?|> |
||
469 | <+=?|> regex : "'",+=?|> |
||
470 | <+=?|> stateName : "jsx_attr_q",+=?|> |
||
471 | <+=?|> push : [+=?|> |
||
472 | <+=?|> {token : "string.attribute-value.xml", regex: "'", next: "pop"},+=?|> |
||
473 | <+=?|> {include : "reference"},+=?|> |
||
474 | <+=?|> {defaultToken : "string.attribute-value.xml"}+=?|> |
||
475 | <+=?|> ]+=?|> |
||
476 | <+=?|> }, {+=?|> |
||
477 | <+=?|> token : "string.attribute-value.xml",+=?|> |
||
478 | <+=?|> regex : '"',+=?|> |
||
479 | <+=?|> stateName : "jsx_attr_qq",+=?|> |
||
480 | <+=?|> push : [+=?|> |
||
481 | <+=?|> {token : "string.attribute-value.xml", regex: '"', next: "pop"},+=?|> |
||
482 | <+=?|> {include : "reference"},+=?|> |
||
483 | <+=?|> {defaultToken : "string.attribute-value.xml"}+=?|> |
||
484 | <+=?|> ]+=?|> |
||
485 | <+=?|> },+=?|> |
||
486 | <+=?|> jsxTag+=?|> |
||
487 | <+=?|> ];+=?|> |
||
488 | <+=?|> this.$rules.reference = [{+=?|> |
||
489 | <+=?|> token : "constant.language.escape.reference.xml",+=?|> |
||
490 | <+=?|> regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"+=?|> |
||
491 | <+=?|> }];+=?|> |
||
492 | <+=?|>}+=?|> |
||
493 | |||
494 | <+=?|>function comments(next) {+=?|> |
||
495 | <+=?|> return [+=?|> |
||
496 | <+=?|> {+=?|> |
||
497 | <+=?|> token : "comment", // multi line comment+=?|> |
||
498 | <+=?|> regex : /\/\*/,+=?|> |
||
499 | <+=?|> next: [+=?|> |
||
500 | <+=?|> DocCommentHighlightRules.getTagRule(),+=?|> |
||
501 | <+=?|> {token : "comment", regex : "\\*\\/", next : next || "pop"},+=?|> |
||
502 | <+=?|> {defaultToken : "comment", caseInsensitive: true}+=?|> |
||
503 | <+=?|> ]+=?|> |
||
504 | <+=?|> }, {+=?|> |
||
505 | <+=?|> token : "comment",+=?|> |
||
506 | <+=?|> regex : "\\/\\/",+=?|> |
||
507 | <+=?|> next: [+=?|> |
||
508 | <+=?|> DocCommentHighlightRules.getTagRule(),+=?|> |
||
509 | <+=?|> {token : "comment", regex : "$|^", next : next || "pop"},+=?|> |
||
510 | <+=?|> {defaultToken : "comment", caseInsensitive: true}+=?|> |
||
511 | <+=?|> ]+=?|> |
||
512 | <+=?|> }+=?|> |
||
513 | <+=?|> ];+=?|> |
||
514 | <+=?|>}+=?|> |
||
515 | <+=?|>exports.JavaScriptHighlightRules = JavaScriptHighlightRules;+=?|> |
||
516 | <+=?|>});+=?|> |
||
517 | |||
518 | <+=?|>ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {+=?|> |
||
519 | <+=?|>"use strict";+=?|> |
||
520 | |||
521 | <+=?|>var oop = require("../lib/oop");+=?|> |
||
522 | <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;+=?|> |
||
523 | |||
524 | <+=?|>var XmlHighlightRules = function(normalize) {+=?|> |
||
525 | <+=?|> var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";+=?|> |
||
526 | |||
527 | <+=?|> this.$rules = {+=?|> |
||
528 | <+=?|> start : [+=?|> |
||
529 | <+=?|> {token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},+=?|> |
||
530 | <+=?|> {+=?|> |
||
531 | <+=?|> token : ["punctuation.xml-decl.xml", "keyword.xml-decl.xml"],+=?|> |
||
532 | <+=?|> regex : "(<\\?)(xml)(?=[\\s])", next : "xml_decl", caseInsensitive: true+=?|> |
||
533 | <+=?|> },+=?|> |
||
534 | <+=?|> {+=?|> |
||
535 | <+=?|> token : ["punctuation.instruction.xml", "keyword.instruction.xml"],+=?|> |
||
536 | <+=?|> regex : "(<\\?)(" + tagRegex + ")", next : "processing_instruction"+=?|> |
||
537 | <+=?|> },+=?|> |
||
538 | <+=?|> {token : "comment.xml", regex : "<\\!--", next : "comment"},+=?|> |
||
539 | <+=?|> {+=?|> |
||
540 | <+=?|> token : ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],+=?|> |
||
541 | <+=?|> regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype", caseInsensitive: true+=?|> |
||
542 | <+=?|> },+=?|> |
||
543 | <+=?|> {include : "tag"},+=?|> |
||
544 | <+=?|> {token : "text.end-tag-open.xml", regex: "</"},+=?|> |
||
545 | <+=?|> {token : "text.tag-open.xml", regex: "<"},+=?|> |
||
546 | <+=?|> {include : "reference"},+=?|> |
||
547 | <+=?|> {defaultToken : "text.xml"}+=?|> |
||
548 | <+=?|> ],+=?|> |
||
549 | |||
550 | <+=?|> xml_decl : [{+=?|> |
||
551 | <+=?|> token : "entity.other.attribute-name.decl-attribute-name.xml",+=?|> |
||
552 | <+=?|> regex : "(?:" + tagRegex + ":)?" + tagRegex + ""+=?|> |
||
553 | <+=?|> }, {+=?|> |
||
554 | <+=?|> token : "keyword.operator.decl-attribute-equals.xml",+=?|> |
||
555 | <+=?|> regex : "="+=?|> |
||
556 | <+=?|> }, {+=?|> |
||
557 | <+=?|> include: "whitespace"+=?|> |
||
558 | <+=?|> }, {+=?|> |
||
559 | <+=?|> include: "string"+=?|> |
||
560 | <+=?|> }, {+=?|> |
||
561 | <+=?|> token : "punctuation.xml-decl.xml",+=?|> |
||
562 | <+=?|> regex : "\\?>",+=?|> |
||
563 | <+=?|> next : "start"+=?|> |
||
564 | <+=?|> }],+=?|> |
||
565 | |||
566 | <+=?|> processing_instruction : [+=?|> |
||
567 | <+=?|> {token : "punctuation.instruction.xml", regex : "\\?>", next : "start"},+=?|> |
||
568 | <+=?|> {defaultToken : "instruction.xml"}+=?|> |
||
569 | <+=?|> ],+=?|> |
||
570 | |||
571 | <+=?|> doctype : [+=?|> |
||
572 | <+=?|> {include : "whitespace"},+=?|> |
||
573 | <+=?|> {include : "string"},+=?|> |
||
574 | <+=?|> {token : "xml-pe.doctype.xml", regex : ">", next : "start"},+=?|> |
||
575 | <+=?|> {token : "xml-pe.xml", regex : "[-_a-zA-Z0-9:]+"},+=?|> |
||
576 | <+=?|> {token : "punctuation.int-subset", regex : "\\[", push : "int_subset"}+=?|> |
||
577 | <+=?|> ],+=?|> |
||
578 | |||
579 | <+=?|> int_subset : [{+=?|> |
||
580 | <+=?|> token : "text.xml",+=?|> |
||
581 | <+=?|> regex : "\\s+"+=?|> |
||
582 | <+=?|> }, {+=?|> |
||
583 | <+=?|> token: "punctuation.int-subset.xml",+=?|> |
||
584 | <+=?|> regex: "]",+=?|> |
||
585 | <+=?|> next: "pop"+=?|> |
||
586 | <+=?|> }, {+=?|> |
||
587 | <+=?|> token : ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],+=?|> |
||
588 | <+=?|> regex : "(<\\!)(" + tagRegex + ")",+=?|> |
||
589 | <+=?|> push : [{+=?|> |
||
590 | <+=?|> token : "text",+=?|> |
||
591 | <+=?|> regex : "\\s+"+=?|> |
||
592 | <+=?|> },+=?|> |
||
593 | <+=?|> {+=?|> |
||
594 | <+=?|> token : "punctuation.markup-decl.xml",+=?|> |
||
595 | <+=?|> regex : ">",+=?|> |
||
596 | <+=?|> next : "pop"+=?|> |
||
597 | <+=?|> },+=?|> |
||
598 | <+=?|> {include : "string"}]+=?|> |
||
599 | <+=?|> }],+=?|> |
||
600 | |||
601 | <+=?|> cdata : [+=?|> |
||
602 | <+=?|> {token : "string.cdata.xml", regex : "\\]\\]>", next : "start"},+=?|> |
||
603 | <+=?|> {token : "text.xml", regex : "\\s+"},+=?|> |
||
604 | <+=?|> {token : "text.xml", regex : "(?:[^\\]]|\\](?!\\]>))+"}+=?|> |
||
605 | <+=?|> ],+=?|> |
||
606 | |||
607 | <+=?|> comment : [+=?|> |
||
608 | <+=?|> {token : "comment.xml", regex : "-->", next : "start"},+=?|> |
||
609 | <+=?|> {defaultToken : "comment.xml"}+=?|> |
||
610 | <+=?|> ],+=?|> |
||
611 | |||
612 | <+=?|> reference : [{+=?|> |
||
613 | <+=?|> token : "constant.language.escape.reference.xml",+=?|> |
||
614 | <+=?|> regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"+=?|> |
||
615 | <+=?|> }],+=?|> |
||
616 | |||
617 | <+=?|> attr_reference : [{+=?|> |
||
618 | <+=?|> token : "constant.language.escape.reference.attribute-value.xml",+=?|> |
||
619 | <+=?|> regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"+=?|> |
||
620 | <+=?|> }],+=?|> |
||
621 | |||
622 | <+=?|> tag : [{+=?|> |
||
623 | <+=?|> token : ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],+=?|> |
||
624 | <+=?|> regex : "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",+=?|> |
||
625 | <+=?|> next: [+=?|> |
||
626 | <+=?|> {include : "attributes"},+=?|> |
||
627 | <+=?|> {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}+=?|> |
||
628 | <+=?|> ]+=?|> |
||
629 | <+=?|> }],+=?|> |
||
630 | |||
631 | <+=?|> tag_whitespace : [+=?|> |
||
632 | <+=?|> {token : "text.tag-whitespace.xml", regex : "\\s+"}+=?|> |
||
633 | <+=?|> ],+=?|> |
||
634 | <+=?|> whitespace : [+=?|> |
||
635 | <+=?|> {token : "text.whitespace.xml", regex : "\\s+"}+=?|> |
||
636 | <+=?|> ],+=?|> |
||
637 | <+=?|> string: [{+=?|> |
||
638 | <+=?|> token : "string.xml",+=?|> |
||
639 | <+=?|> regex : "'",+=?|> |
||
640 | <+=?|> push : [+=?|> |
||
641 | <+=?|> {token : "string.xml", regex: "'", next: "pop"},+=?|> |
||
642 | <+=?|> {defaultToken : "string.xml"}+=?|> |
||
643 | <+=?|> ]+=?|> |
||
644 | <+=?|> }, {+=?|> |
||
645 | <+=?|> token : "string.xml",+=?|> |
||
646 | <+=?|> regex : '"',+=?|> |
||
647 | <+=?|> push : [+=?|> |
||
648 | <+=?|> {token : "string.xml", regex: '"', next: "pop"},+=?|> |
||
649 | <+=?|> {defaultToken : "string.xml"}+=?|> |
||
650 | <+=?|> ]+=?|> |
||
651 | <+=?|> }],+=?|> |
||
652 | |||
653 | <+=?|> attributes: [{+=?|> |
||
654 | <+=?|> token : "entity.other.attribute-name.xml",+=?|> |
||
655 | <+=?|> regex : "(?:" + tagRegex + ":)?" + tagRegex + ""+=?|> |
||
656 | <+=?|> }, {+=?|> |
||
657 | <+=?|> token : "keyword.operator.attribute-equals.xml",+=?|> |
||
658 | <+=?|> regex : "="+=?|> |
||
659 | <+=?|> }, {+=?|> |
||
660 | <+=?|> include: "tag_whitespace"+=?|> |
||
661 | <+=?|> }, {+=?|> |
||
662 | <+=?|> include: "attribute_value"+=?|> |
||
663 | <+=?|> }],+=?|> |
||
664 | |||
665 | <+=?|> attribute_value: [{+=?|> |
||
666 | <+=?|> token : "string.attribute-value.xml",+=?|> |
||
667 | <+=?|> regex : "'",+=?|> |
||
668 | <+=?|> push : [+=?|> |
||
669 | <+=?|> {token : "string.attribute-value.xml", regex: "'", next: "pop"},+=?|> |
||
670 | <+=?|> {include : "attr_reference"},+=?|> |
||
671 | <+=?|> {defaultToken : "string.attribute-value.xml"}+=?|> |
||
672 | <+=?|> ]+=?|> |
||
673 | <+=?|> }, {+=?|> |
||
674 | <+=?|> token : "string.attribute-value.xml",+=?|> |
||
675 | <+=?|> regex : '"',+=?|> |
||
676 | <+=?|> push : [+=?|> |
||
677 | <+=?|> {token : "string.attribute-value.xml", regex: '"', next: "pop"},+=?|> |
||
678 | <+=?|> {include : "attr_reference"},+=?|> |
||
679 | <+=?|> {defaultToken : "string.attribute-value.xml"}+=?|> |
||
680 | <+=?|> ]+=?|> |
||
681 | <+=?|> }]+=?|> |
||
682 | <+=?|> };+=?|> |
||
683 | |||
684 | <+=?|> if (this.constructor === XmlHighlightRules)+=?|> |
||
685 | <+=?|> this.normalizeRules();+=?|> |
||
686 | <+=?|>};+=?|> |
||
687 | |||
688 | |||
689 | <+=?|>(function() {+=?|> |
||
690 | |||
691 | <+=?|> this.embedTagRules = function(HighlightRules, prefix, tag){+=?|> |
||
692 | <+=?|> this.$rules.tag.unshift({+=?|> |
||
693 | <+=?|> token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],+=?|> |
||
694 | <+=?|> regex : "(<)(" + tag + "(?=\\s|>|$))",+=?|> |
||
695 | <+=?|> next: [+=?|> |
||
696 | <+=?|> {include : "attributes"},+=?|> |
||
697 | <+=?|> {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : prefix + "start"}+=?|> |
||
698 | <+=?|> ]+=?|> |
||
699 | <+=?|> });+=?|> |
||
700 | |||
701 | <+=?|> this.$rules[tag + "-end"] = [+=?|> |
||
702 | <+=?|> {include : "attributes"},+=?|> |
||
703 | <+=?|> {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next: "start",+=?|> |
||
704 | <+=?|> onMatch : function(value, currentState, stack) {+=?|> |
||
705 | <+=?|> stack.splice(0);+=?|> |
||
706 | <+=?|> return this.token;+=?|> |
||
707 | <+=?|> }}+=?|> |
||
708 | <+=?|> ]+=?|> |
||
709 | |||
710 | <+=?|> this.embedRules(HighlightRules, prefix, [{+=?|> |
||
711 | <+=?|> token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],+=?|> |
||
712 | <+=?|> regex : "(</)(" + tag + "(?=\\s|>|$))",+=?|> |
||
713 | <+=?|> next: tag + "-end"+=?|> |
||
714 | <+=?|> }, {+=?|> |
||
715 | <+=?|> token: "string.cdata.xml",+=?|> |
||
716 | <+=?|> regex : "<\\!\\[CDATA\\["+=?|> |
||
717 | <+=?|> }, {+=?|> |
||
718 | <+=?|> token: "string.cdata.xml",+=?|> |
||
719 | <+=?|> regex : "\\]\\]>"+=?|> |
||
720 | <+=?|> }]);+=?|> |
||
721 | <+=?|> };+=?|> |
||
722 | |||
723 | <+=?|>}).call(TextHighlightRules.prototype);+=?|> |
||
724 | |||
725 | <+=?|>oop.inherits(XmlHighlightRules, TextHighlightRules);+=?|> |
||
726 | |||
727 | <+=?|>exports.XmlHighlightRules = XmlHighlightRules;+=?|> |
||
728 | <+=?|>});+=?|> |
||
729 | |||
730 | <+=?|>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) {+=?|> |
||
731 | <+=?|>"use strict";+=?|> |
||
732 | |||
733 | <+=?|>var oop = require("../lib/oop");+=?|> |
||
734 | <+=?|>var lang = require("../lib/lang");+=?|> |
||
735 | <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;+=?|> |
||
736 | <+=?|>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";+=?|> |
||
737 | <+=?|>var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";+=?|> |
||
738 | <+=?|>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";+=?|> |
||
739 | <+=?|>var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow";+=?|> |
||
740 | <+=?|>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";+=?|> |
||
741 | |||
742 | <+=?|>var numRe = exports.numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";+=?|> |
||
743 | <+=?|>var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";+=?|> |
||
744 | <+=?|>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";+=?|> |
||
745 | |||
746 | <+=?|>var CssHighlightRules = function() {+=?|> |
||
747 | |||
748 | <+=?|> var keywordMapper = this.createKeywordMapper({+=?|> |
||
749 | <+=?|> "support.function": supportFunction,+=?|> |
||
750 | <+=?|> "support.constant": supportConstant,+=?|> |
||
751 | <+=?|> "support.type": supportType,+=?|> |
||
752 | <+=?|> "support.constant.color": supportConstantColor,+=?|> |
||
753 | <+=?|> "support.constant.fonts": supportConstantFonts+=?|> |
||
754 | <+=?|> }, "text", true);+=?|> |
||
755 | |||
756 | <+=?|> this.$rules = {+=?|> |
||
757 | <+=?|> "start" : [{+=?|> |
||
758 | <+=?|> token : "comment", // multi line comment+=?|> |
||
759 | <+=?|> regex : "\\/\\*",+=?|> |
||
760 | <+=?|> push : "comment"+=?|> |
||
761 | <+=?|> }, {+=?|> |
||
762 | <+=?|> token: "paren.lparen",+=?|> |
||
763 | <+=?|> regex: "\\{",+=?|> |
||
764 | <+=?|> push: "ruleset"+=?|> |
||
765 | <+=?|> }, {+=?|> |
||
766 | <+=?|> token: "string",+=?|> |
||
767 | <+=?|> regex: "@.*?{",+=?|> |
||
768 | <+=?|> push: "media"+=?|> |
||
769 | <+=?|> }, {+=?|> |
||
770 | <+=?|> token: "keyword",+=?|> |
||
771 | <+=?|> regex: "#[a-z0-9-_]+"+=?|> |
||
772 | <+=?|> }, {+=?|> |
||
773 | <+=?|> token: "variable",+=?|> |
||
774 | <+=?|> regex: "\\.[a-z0-9-_]+"+=?|> |
||
775 | <+=?|> }, {+=?|> |
||
776 | <+=?|> token: "string",+=?|> |
||
777 | <+=?|> regex: ":[a-z0-9-_]+"+=?|> |
||
778 | <+=?|> }, {+=?|> |
||
779 | <+=?|> token: "constant",+=?|> |
||
780 | <+=?|> regex: "[a-z0-9-_]+"+=?|> |
||
781 | <+=?|> }, {+=?|> |
||
782 | <+=?|> caseInsensitive: true+=?|> |
||
783 | <+=?|> }],+=?|> |
||
784 | |||
785 | <+=?|> "media" : [{+=?|> |
||
786 | <+=?|> token : "comment", // multi line comment+=?|> |
||
787 | <+=?|> regex : "\\/\\*",+=?|> |
||
788 | <+=?|> push : "comment"+=?|> |
||
789 | <+=?|> }, {+=?|> |
||
790 | <+=?|> token: "paren.lparen",+=?|> |
||
791 | <+=?|> regex: "\\{",+=?|> |
||
792 | <+=?|> push: "ruleset"+=?|> |
||
793 | <+=?|> }, {+=?|> |
||
794 | <+=?|> token: "string",+=?|> |
||
795 | <+=?|> regex: "\\}",+=?|> |
||
796 | <+=?|> next: "pop"+=?|> |
||
797 | <+=?|> }, {+=?|> |
||
798 | <+=?|> token: "keyword",+=?|> |
||
799 | <+=?|> regex: "#[a-z0-9-_]+"+=?|> |
||
800 | <+=?|> }, {+=?|> |
||
801 | <+=?|> token: "variable",+=?|> |
||
802 | <+=?|> regex: "\\.[a-z0-9-_]+"+=?|> |
||
803 | <+=?|> }, {+=?|> |
||
804 | <+=?|> token: "string",+=?|> |
||
805 | <+=?|> regex: ":[a-z0-9-_]+"+=?|> |
||
806 | <+=?|> }, {+=?|> |
||
807 | <+=?|> token: "constant",+=?|> |
||
808 | <+=?|> regex: "[a-z0-9-_]+"+=?|> |
||
809 | <+=?|> }, {+=?|> |
||
810 | <+=?|> caseInsensitive: true+=?|> |
||
811 | <+=?|> }],+=?|> |
||
812 | |||
813 | <+=?|> "comment" : [{+=?|> |
||
814 | <+=?|> token : "comment",+=?|> |
||
815 | <+=?|> regex : "\\*\\/",+=?|> |
||
816 | <+=?|> next : "pop"+=?|> |
||
817 | <+=?|> }, {+=?|> |
||
818 | <+=?|> defaultToken : "comment"+=?|> |
||
819 | <+=?|> }],+=?|> |
||
820 | |||
821 | <+=?|> "ruleset" : [+=?|> |
||
822 | <+=?|> {+=?|> |
||
823 | <+=?|> token : "paren.rparen",+=?|> |
||
824 | <+=?|> regex : "\\}",+=?|> |
||
825 | <+=?|> next: "pop"+=?|> |
||
826 | <+=?|> }, {+=?|> |
||
827 | <+=?|> token : "comment", // multi line comment+=?|> |
||
828 | <+=?|> regex : "\\/\\*",+=?|> |
||
829 | <+=?|> push : "comment"+=?|> |
||
830 | <+=?|> }, {+=?|> |
||
831 | <+=?|> token : "string", // single line+=?|> |
||
832 | <+=?|> regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'+=?|> |
||
833 | <+=?|> }, {+=?|> |
||
834 | <+=?|> token : "string", // single line+=?|> |
||
835 | <+=?|> regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"+=?|> |
||
836 | <+=?|> }, {+=?|> |
||
837 | <+=?|> token : ["constant.numeric", "keyword"],+=?|> |
||
838 | <+=?|> 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|%)"+=?|> |
||
839 | <+=?|> }, {+=?|> |
||
840 | <+=?|> token : "constant.numeric",+=?|> |
||
841 | <+=?|> regex : numRe+=?|> |
||
842 | <+=?|> }, {+=?|> |
||
843 | <+=?|> token : "constant.numeric", // hex6 color+=?|> |
||
844 | <+=?|> regex : "#[a-f0-9]{6}"+=?|> |
||
845 | <+=?|> }, {+=?|> |
||
846 | <+=?|> token : "constant.numeric", // hex3 color+=?|> |
||
847 | <+=?|> regex : "#[a-f0-9]{3}"+=?|> |
||
848 | <+=?|> }, {+=?|> |
||
849 | <+=?|> token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],+=?|> |
||
850 | <+=?|> regex : pseudoElements+=?|> |
||
851 | <+=?|> }, {+=?|> |
||
852 | <+=?|> token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],+=?|> |
||
853 | <+=?|> regex : pseudoClasses+=?|> |
||
854 | <+=?|> }, {+=?|> |
||
855 | <+=?|> token : ["support.function", "string", "support.function"],+=?|> |
||
856 | <+=?|> regex : "(url\\()(.*)(\\))"+=?|> |
||
857 | <+=?|> }, {+=?|> |
||
858 | <+=?|> token : keywordMapper,+=?|> |
||
859 | <+=?|> regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"+=?|> |
||
860 | <+=?|> }, {+=?|> |
||
861 | <+=?|> caseInsensitive: true+=?|> |
||
862 | <+=?|> }]+=?|> |
||
863 | <+=?|> };+=?|> |
||
864 | |||
865 | <+=?|> this.normalizeRules();+=?|> |
||
866 | <+=?|>};+=?|> |
||
867 | |||
868 | <+=?|>oop.inherits(CssHighlightRules, TextHighlightRules);+=?|> |
||
869 | |||
870 | <+=?|>exports.CssHighlightRules = CssHighlightRules;+=?|> |
||
871 | |||
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/markdown_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules","ace/mode/html_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module) {+=?|> |
||
957 | <+=?|>"use strict";+=?|> |
||
958 | |||
959 | <+=?|>var oop = require("../lib/oop");+=?|> |
||
960 | <+=?|>var lang = require("../lib/lang");+=?|> |
||
961 | <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;+=?|> |
||
962 | <+=?|>var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;+=?|> |
||
963 | <+=?|>var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;+=?|> |
||
964 | <+=?|>var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;+=?|> |
||
965 | <+=?|>var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;+=?|> |
||
966 | |||
967 | <+=?|>var escaped = function(ch) {+=?|> |
||
968 | <+=?|> return "(?:[^" + lang.escapeRegExp(ch) + "\\\\]|\\\\.)*";+=?|> |
||
969 | <+=?|>}+=?|> |
||
970 | |||
971 | <+=?|>function github_embed(tag, prefix) {+=?|> |
||
972 | <+=?|> return { // Github style block+=?|> |
||
973 | <+=?|> token : "support.function",+=?|> |
||
974 | <+=?|> regex : "^\\s*```" + tag + "\\s*$",+=?|> |
||
975 | <+=?|> push : prefix + "start"+=?|> |
||
976 | <+=?|> };+=?|> |
||
977 | <+=?|>}+=?|> |
||
978 | |||
979 | <+=?|>var MarkdownHighlightRules = function() {+=?|> |
||
980 | <+=?|> HtmlHighlightRules.call(this);+=?|> |
||
981 | |||
982 | <+=?|> this.$rules["start"].unshift({+=?|> |
||
983 | <+=?|> token : "empty_line",+=?|> |
||
984 | <+=?|> regex : '^$',+=?|> |
||
985 | <+=?|> next: "allowBlock"+=?|> |
||
986 | <+=?|> }, { // h1+=?|> |
||
987 | <+=?|> token: "markup.heading.1",+=?|> |
||
988 | <+=?|> regex: "^=+(?=\\s*$)"+=?|> |
||
989 | <+=?|> }, { // h2+=?|> |
||
990 | <+=?|> token: "markup.heading.2",+=?|> |
||
991 | <+=?|> regex: "^\\-+(?=\\s*$)"+=?|> |
||
992 | <+=?|> }, {+=?|> |
||
993 | <+=?|> token : function(value) {+=?|> |
||
994 | <+=?|> return "markup.heading." + value.length;+=?|> |
||
995 | <+=?|> },+=?|> |
||
996 | <+=?|> regex : /^#{1,6}(?=\s*[^ #]|\s+#.)/,+=?|> |
||
997 | <+=?|> next : "header"+=?|> |
||
998 | <+=?|> },+=?|> |
||
999 | <+=?|> github_embed("(?:javascript|js)", "jscode-"),+=?|> |
||
1000 | <+=?|> github_embed("xml", "xmlcode-"),+=?|> |
||
1001 | <+=?|> github_embed("html", "htmlcode-"),+=?|> |
||
1002 | <+=?|> github_embed("css", "csscode-"),+=?|> |
||
1003 | <+=?|> { // Github style block+=?|> |
||
1004 | <+=?|> token : "support.function",+=?|> |
||
1005 | <+=?|> regex : "^\\s*```\\s*\\S*(?:{.*?\\})?\\s*$",+=?|> |
||
1006 | <+=?|> next : "githubblock"+=?|> |
||
1007 | <+=?|> }, { // block quote+=?|> |
||
1008 | <+=?|> token : "string.blockquote",+=?|> |
||
1009 | <+=?|> regex : "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",+=?|> |
||
1010 | <+=?|> next : "blockquote"+=?|> |
||
1011 | <+=?|> }, { // HR * - _+=?|> |
||
1012 | <+=?|> token : "constant",+=?|> |
||
1013 | <+=?|> regex : "^ {0,2}(?:(?: ?\\* ?){3,}|(?: ?\\- ?){3,}|(?: ?\\_ ?){3,})\\s*$",+=?|> |
||
1014 | <+=?|> next: "allowBlock"+=?|> |
||
1015 | <+=?|> }, { // list+=?|> |
||
1016 | <+=?|> token : "markup.list",+=?|> |
||
1017 | <+=?|> regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",+=?|> |
||
1018 | <+=?|> next : "listblock-start"+=?|> |
||
1019 | <+=?|> }, {+=?|> |
||
1020 | <+=?|> include : "basic"+=?|> |
||
1021 | <+=?|> });+=?|> |
||
1022 | |||
1023 | <+=?|> this.addRules({+=?|> |
||
1024 | <+=?|> "basic" : [{+=?|> |
||
1025 | <+=?|> token : "constant.language.escape",+=?|> |
||
1026 | <+=?|> regex : /\\[\\`*_{}\[\]()#+\-.!]/+=?|> |
||
1027 | <+=?|> }, { // code span `+=?|> |
||
1028 | <+=?|> token : "support.function",+=?|> |
||
1029 | <+=?|> regex : "(`+)(.*?[^`])(\\1)"+=?|> |
||
1030 | <+=?|> }, { // reference+=?|> |
||
1031 | <+=?|> token : ["text", "constant", "text", "url", "string", "text"],+=?|> |
||
1032 | <+=?|> regex : "^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:[\"][^\"]+[\"])?(\\s*))$"+=?|> |
||
1033 | <+=?|> }, { // link by reference+=?|> |
||
1034 | <+=?|> token : ["text", "string", "text", "constant", "text"],+=?|> |
||
1035 | <+=?|> regex : "(\\[)(" + escaped("]") + ")(\\]\\s*\\[)("+ escaped("]") + ")(\\])"+=?|> |
||
1036 | <+=?|> }, { // link by url+=?|> |
||
1037 | <+=?|> token : ["text", "string", "text", "markup.underline", "string", "text"],+=?|> |
||
1038 | <+=?|> regex : "(\\[)(" + // [+=?|> |
||
1039 | <+=?|> escaped("]") + // link text+=?|> |
||
1040 | <+=?|> ")(\\]\\()"+ // ](+=?|> |
||
1041 | <+=?|> '((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)' + // href+=?|> |
||
1042 | <+=?|> '(\\s*"' + escaped('"') + '"\\s*)?' + // "title"+=?|> |
||
1043 | <+=?|> "(\\))" // )+=?|> |
||
1044 | <+=?|> }, { // strong ** __+=?|> |
||
1045 | <+=?|> token : "string.strong",+=?|> |
||
1046 | <+=?|> regex : "([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"+=?|> |
||
1047 | <+=?|> }, { // emphasis * _+=?|> |
||
1048 | <+=?|> token : "string.emphasis",+=?|> |
||
1049 | <+=?|> regex : "([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"+=?|> |
||
1050 | <+=?|> }, { //+=?|> |
||
1051 | <+=?|> token : ["text", "url", "text"],+=?|> |
||
1052 | <+=?|> regex : "(<)("++=?|> |
||
1053 | <+=?|> "(?:https?|ftp|dict):[^'\">\\s]+"++=?|> |
||
1054 | <+=?|> "|"++=?|> |
||
1055 | <+=?|> "(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+"++=?|> |
||
1056 | <+=?|> ")(>)"+=?|> |
||
1057 | <+=?|> }],+=?|> |
||
1058 | <+=?|> "allowBlock": [+=?|> |
||
1059 | <+=?|> {token : "support.function", regex : "^ {4}.+", next : "allowBlock"},+=?|> |
||
1060 | <+=?|> {token : "empty_line", regex : '^$', next: "allowBlock"},+=?|> |
||
1061 | <+=?|> {token : "empty", regex : "", next : "start"}+=?|> |
||
1062 | <+=?|> ],+=?|> |
||
1063 | |||
1064 | <+=?|> "header" : [{+=?|> |
||
1065 | <+=?|> regex: "$",+=?|> |
||
1066 | <+=?|> next : "start"+=?|> |
||
1067 | <+=?|> }, {+=?|> |
||
1068 | <+=?|> include: "basic"+=?|> |
||
1069 | <+=?|> }, {+=?|> |
||
1070 | <+=?|> defaultToken : "heading"+=?|> |
||
1071 | <+=?|> } ],+=?|> |
||
1072 | |||
1073 | <+=?|> "listblock-start" : [{+=?|> |
||
1074 | <+=?|> token : "support.variable",+=?|> |
||
1075 | <+=?|> regex : /(?:\[[ x]\])?/,+=?|> |
||
1076 | <+=?|> next : "listblock"+=?|> |
||
1077 | <+=?|> }],+=?|> |
||
1078 | |||
1079 | <+=?|> "listblock" : [ { // Lists only escape on completely blank lines.+=?|> |
||
1080 | <+=?|> token : "empty_line",+=?|> |
||
1081 | <+=?|> regex : "^$",+=?|> |
||
1082 | <+=?|> next : "start"+=?|> |
||
1083 | <+=?|> }, { // list+=?|> |
||
1084 | <+=?|> token : "markup.list",+=?|> |
||
1085 | <+=?|> regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",+=?|> |
||
1086 | <+=?|> next : "listblock-start"+=?|> |
||
1087 | <+=?|> }, {+=?|> |
||
1088 | <+=?|> include : "basic", noEscape: true+=?|> |
||
1089 | <+=?|> }, { // Github style block+=?|> |
||
1090 | <+=?|> token : "support.function",+=?|> |
||
1091 | <+=?|> regex : "^\\s*```\\s*[a-zA-Z]*(?:{.*?\\})?\\s*$",+=?|> |
||
1092 | <+=?|> next : "githubblock"+=?|> |
||
1093 | <+=?|> }, {+=?|> |
||
1094 | <+=?|> defaultToken : "list" //do not use markup.list to allow stling leading `*` differntly+=?|> |
||
1095 | <+=?|> } ],+=?|> |
||
1096 | |||
1097 | <+=?|> "blockquote" : [ { // Blockquotes only escape on blank lines.+=?|> |
||
1098 | <+=?|> token : "empty_line",+=?|> |
||
1099 | <+=?|> regex : "^\\s*$",+=?|> |
||
1100 | <+=?|> next : "start"+=?|> |
||
1101 | <+=?|> }, { // block quote+=?|> |
||
1102 | <+=?|> token : "string.blockquote",+=?|> |
||
1103 | <+=?|> regex : "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",+=?|> |
||
1104 | <+=?|> next : "blockquote"+=?|> |
||
1105 | <+=?|> }, {+=?|> |
||
1106 | <+=?|> include : "basic", noEscape: true+=?|> |
||
1107 | <+=?|> }, {+=?|> |
||
1108 | <+=?|> defaultToken : "string.blockquote"+=?|> |
||
1109 | <+=?|> } ],+=?|> |
||
1110 | |||
1111 | <+=?|> "githubblock" : [ {+=?|> |
||
1112 | <+=?|> token : "support.function",+=?|> |
||
1113 | <+=?|> regex : "^\\s*```",+=?|> |
||
1114 | <+=?|> next : "start"+=?|> |
||
1115 | <+=?|> }, {+=?|> |
||
1116 | <+=?|> token : "support.function",+=?|> |
||
1117 | <+=?|> regex : ".+"+=?|> |
||
1118 | <+=?|> } ]+=?|> |
||
1119 | <+=?|> });+=?|> |
||
1120 | |||
1121 | <+=?|> this.embedRules(JavaScriptHighlightRules, "jscode-", [{+=?|> |
||
1122 | <+=?|> token : "support.function",+=?|> |
||
1123 | <+=?|> regex : "^\\s*```",+=?|> |
||
1124 | <+=?|> next : "pop"+=?|> |
||
1125 | <+=?|> }]);+=?|> |
||
1126 | |||
1127 | <+=?|> this.embedRules(HtmlHighlightRules, "htmlcode-", [{+=?|> |
||
1128 | <+=?|> token : "support.function",+=?|> |
||
1129 | <+=?|> regex : "^\\s*```",+=?|> |
||
1130 | <+=?|> next : "pop"+=?|> |
||
1131 | <+=?|> }]);+=?|> |
||
1132 | |||
1133 | <+=?|> this.embedRules(CssHighlightRules, "csscode-", [{+=?|> |
||
1134 | <+=?|> token : "support.function",+=?|> |
||
1135 | <+=?|> regex : "^\\s*```",+=?|> |
||
1136 | <+=?|> next : "pop"+=?|> |
||
1137 | <+=?|> }]);+=?|> |
||
1138 | |||
1139 | <+=?|> this.embedRules(XmlHighlightRules, "xmlcode-", [{+=?|> |
||
1140 | <+=?|> token : "support.function",+=?|> |
||
1141 | <+=?|> regex : "^\\s*```",+=?|> |
||
1142 | <+=?|> next : "pop"+=?|> |
||
1143 | <+=?|> }]);+=?|> |
||
1144 | |||
1145 | <+=?|> this.normalizeRules();+=?|> |
||
1146 | <+=?|>};+=?|> |
||
1147 | <+=?|>oop.inherits(MarkdownHighlightRules, TextHighlightRules);+=?|> |
||
1148 | |||
1149 | <+=?|>exports.MarkdownHighlightRules = MarkdownHighlightRules;+=?|> |
||
1150 | <+=?|>});+=?|> |
||
1151 | |||
1152 | <+=?|>ace.define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {+=?|> |
||
1153 | <+=?|>"use strict";+=?|> |
||
1154 | |||
1155 | <+=?|>var oop = require("../lib/oop");+=?|> |
||
1156 | <+=?|>var lang = require("../lib/lang");+=?|> |
||
1157 | <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;+=?|> |
||
1158 | |||
1159 | <+=?|>var ScssHighlightRules = function() {+=?|> |
||
1160 | |||
1161 | <+=?|> var properties = lang.arrayToMap( (function () {+=?|> |
||
1162 | |||
1163 | <+=?|> var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");+=?|> |
||
1164 | |||
1165 | <+=?|> var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" + +=?|> |
||
1166 | <+=?|> "background-size|binding|border-bottom-colors|border-left-colors|" + +=?|> |
||
1167 | <+=?|> "border-right-colors|border-top-colors|border-end|border-end-color|" + +=?|> |
||
1168 | <+=?|> "border-end-style|border-end-width|border-image|border-start|" + +=?|> |
||
1169 | <+=?|> "border-start-color|border-start-style|border-start-width|box-align|" + +=?|> |
||
1170 | <+=?|> "box-direction|box-flex|box-flexgroup|box-ordinal-group|box-orient|" + +=?|> |
||
1171 | <+=?|> "box-pack|box-sizing|column-count|column-gap|column-width|column-rule|" + +=?|> |
||
1172 | <+=?|> "column-rule-width|column-rule-style|column-rule-color|float-edge|" + +=?|> |
||
1173 | <+=?|> "font-feature-settings|font-language-override|force-broken-image-icon|" + +=?|> |
||
1174 | <+=?|> "image-region|margin-end|margin-start|opacity|outline|outline-color|" + +=?|> |
||
1175 | <+=?|> "outline-offset|outline-radius|outline-radius-bottomleft|" + +=?|> |
||
1176 | <+=?|> "outline-radius-bottomright|outline-radius-topleft|outline-radius-topright|" + +=?|> |
||
1177 | <+=?|> "outline-style|outline-width|padding-end|padding-start|stack-sizing|" + +=?|> |
||
1178 | <+=?|> "tab-size|text-blink|text-decoration-color|text-decoration-line|" + +=?|> |
||
1179 | <+=?|> "text-decoration-style|transform|transform-origin|transition|" + +=?|> |
||
1180 | <+=?|> "transition-delay|transition-duration|transition-property|" + +=?|> |
||
1181 | <+=?|> "transition-timing-function|user-focus|user-input|user-modify|user-select|" ++=?|> |
||
1182 | <+=?|> "window-shadow|border-radius").split("|");+=?|> |
||
1183 | |||
1184 | <+=?|> var properties = ("azimuth|background-attachment|background-color|background-image|" ++=?|> |
||
1185 | <+=?|> "background-position|background-repeat|background|border-bottom-color|" ++=?|> |
||
1186 | <+=?|> "border-bottom-style|border-bottom-width|border-bottom|border-collapse|" ++=?|> |
||
1187 | <+=?|> "border-color|border-left-color|border-left-style|border-left-width|" ++=?|> |
||
1188 | <+=?|> "border-left|border-right-color|border-right-style|border-right-width|" ++=?|> |
||
1189 | <+=?|> "border-right|border-spacing|border-style|border-top-color|" ++=?|> |
||
1190 | <+=?|> "border-top-style|border-top-width|border-top|border-width|border|bottom|" ++=?|> |
||
1191 | <+=?|> "box-shadow|box-sizing|caption-side|clear|clip|color|content|counter-increment|" ++=?|> |
||
1192 | <+=?|> "counter-reset|cue-after|cue-before|cue|cursor|direction|display|" ++=?|> |
||
1193 | <+=?|> "elevation|empty-cells|float|font-family|font-size-adjust|font-size|" ++=?|> |
||
1194 | <+=?|> "font-stretch|font-style|font-variant|font-weight|font|height|left|" ++=?|> |
||
1195 | <+=?|> "letter-spacing|line-height|list-style-image|list-style-position|" ++=?|> |
||
1196 | <+=?|> "list-style-type|list-style|margin-bottom|margin-left|margin-right|" ++=?|> |
||
1197 | <+=?|> "margin-top|marker-offset|margin|marks|max-height|max-width|min-height|" ++=?|> |
||
1198 | <+=?|> "min-width|opacity|orphans|outline-color|" ++=?|> |
||
1199 | <+=?|> "outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|" ++=?|> |
||
1200 | <+=?|> "padding-left|padding-right|padding-top|padding|page-break-after|" ++=?|> |
||
1201 | <+=?|> "page-break-before|page-break-inside|page|pause-after|pause-before|" ++=?|> |
||
1202 | <+=?|> "pause|pitch-range|pitch|play-during|position|quotes|richness|right|" ++=?|> |
||
1203 | <+=?|> "size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|" ++=?|> |
||
1204 | <+=?|> "stress|table-layout|text-align|text-decoration|text-indent|" ++=?|> |
||
1205 | <+=?|> "text-shadow|text-transform|top|unicode-bidi|vertical-align|" ++=?|> |
||
1206 | <+=?|> "visibility|voice-family|volume|white-space|widows|width|word-spacing|" ++=?|> |
||
1207 | <+=?|> "z-index").split("|");+=?|> |
||
1208 | <+=?|> var ret = [];+=?|> |
||
1209 | <+=?|> for (var i=0, ln=browserPrefix.length; i<ln; i++) {+=?|> |
||
1210 | <+=?|> Array.prototype.push.apply(+=?|> |
||
1211 | <+=?|> ret,+=?|> |
||
1212 | <+=?|> (( browserPrefix[i] + prefixProperties.join("|" + browserPrefix[i]) ).split("|"))+=?|> |
||
1213 | <+=?|> );+=?|> |
||
1214 | <+=?|> }+=?|> |
||
1215 | <+=?|> Array.prototype.push.apply(ret, prefixProperties);+=?|> |
||
1216 | <+=?|> Array.prototype.push.apply(ret, properties);+=?|> |
||
1217 | |||
1218 | <+=?|> return ret;+=?|> |
||
1219 | |||
1220 | <+=?|> })() );+=?|> |
||
1221 | |||
1222 | |||
1223 | |||
1224 | <+=?|> var functions = lang.arrayToMap(+=?|> |
||
1225 | <+=?|> ("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" ++=?|> |
||
1226 | <+=?|> "alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" + +=?|> |
||
1227 | <+=?|> "floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" + +=?|> |
||
1228 | <+=?|> "nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" ++=?|> |
||
1229 | <+=?|> "scale_color|transparentize|type_of|unit|unitless|unqoute").split("|")+=?|> |
||
1230 | <+=?|> );+=?|> |
||
1231 | |||
1232 | <+=?|> var constants = lang.arrayToMap(+=?|> |
||
1233 | <+=?|> ("absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|" ++=?|> |
||
1234 | <+=?|> "block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|" ++=?|> |
||
1235 | <+=?|> "char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|" ++=?|> |
||
1236 | <+=?|> "decimal-leading-zero|decimal|default|disabled|disc|" ++=?|> |
||
1237 | <+=?|> "distribute-all-lines|distribute-letter|distribute-space|" ++=?|> |
||
1238 | <+=?|> "distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|" ++=?|> |
||
1239 | <+=?|> "hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|" ++=?|> |
||
1240 | <+=?|> "ideograph-alpha|ideograph-numeric|ideograph-parenthesis|" ++=?|> |
||
1241 | <+=?|> "ideograph-space|inactive|inherit|inline-block|inline|inset|inside|" ++=?|> |
||
1242 | <+=?|> "inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|" ++=?|> |
||
1243 | <+=?|> "keep-all|left|lighter|line-edge|line-through|line|list-item|loose|" ++=?|> |
||
1244 | <+=?|> "lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|" ++=?|> |
||
1245 | <+=?|> "medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|" ++=?|> |
||
1246 | <+=?|> "nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|" ++=?|> |
||
1247 | <+=?|> "overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|" ++=?|> |
||
1248 | <+=?|> "ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|" ++=?|> |
||
1249 | <+=?|> "solid|square|static|strict|super|sw-resize|table-footer-group|" ++=?|> |
||
1250 | <+=?|> "table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|" ++=?|> |
||
1251 | <+=?|> "transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|" ++=?|> |
||
1252 | <+=?|> "vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|" ++=?|> |
||
1253 | <+=?|> "zero").split("|")+=?|> |
||
1254 | <+=?|> );+=?|> |
||
1255 | |||
1256 | <+=?|> var colors = lang.arrayToMap(+=?|> |
||
1257 | <+=?|> ("aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|" ++=?|> |
||
1258 | <+=?|> "purple|red|silver|teal|white|yellow").split("|")+=?|> |
||
1259 | <+=?|> );+=?|> |
||
1260 | |||
1261 | <+=?|> var keywords = lang.arrayToMap(+=?|> |
||
1262 | <+=?|> ("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|")+=?|> |
||
1263 | <+=?|> )+=?|> |
||
1264 | |||
1265 | <+=?|> var tags = lang.arrayToMap(+=?|> |
||
1266 | <+=?|> ("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" + +=?|> |
||
1267 | <+=?|> "big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" + +=?|> |
||
1268 | <+=?|> "command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" + +=?|> |
||
1269 | <+=?|> "figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" + +=?|> |
||
1270 | <+=?|> "header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" + +=?|> |
||
1271 | <+=?|> "link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" + +=?|> |
||
1272 | <+=?|> "option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" + +=?|> |
||
1273 | <+=?|> "small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" + +=?|> |
||
1274 | <+=?|> "textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")+=?|> |
||
1275 | <+=?|> );+=?|> |
||
1276 | |||
1277 | <+=?|> var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";+=?|> |
||
1278 | |||
1279 | <+=?|> this.$rules = {+=?|> |
||
1280 | <+=?|> "start" : [+=?|> |
||
1281 | <+=?|> {+=?|> |
||
1282 | <+=?|> token : "comment",+=?|> |
||
1283 | <+=?|> regex : "\\/\\/.*$"+=?|> |
||
1284 | <+=?|> },+=?|> |
||
1285 | <+=?|> {+=?|> |
||
1286 | <+=?|> token : "comment", // multi line comment+=?|> |
||
1287 | <+=?|> regex : "\\/\\*",+=?|> |
||
1288 | <+=?|> next : "comment"+=?|> |
||
1289 | <+=?|> }, {+=?|> |
||
1290 | <+=?|> token : "string", // single line+=?|> |
||
1291 | <+=?|> regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'+=?|> |
||
1292 | <+=?|> }, {+=?|> |
||
1293 | <+=?|> token : "string", // multi line string start+=?|> |
||
1294 | <+=?|> regex : '["].*\\\\$',+=?|> |
||
1295 | <+=?|> next : "qqstring"+=?|> |
||
1296 | <+=?|> }, {+=?|> |
||
1297 | <+=?|> token : "string", // single line+=?|> |
||
1298 | <+=?|> regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"+=?|> |
||
1299 | <+=?|> }, {+=?|> |
||
1300 | <+=?|> token : "string", // multi line string start+=?|> |
||
1301 | <+=?|> regex : "['].*\\\\$",+=?|> |
||
1302 | <+=?|> next : "qstring"+=?|> |
||
1303 | <+=?|> }, {+=?|> |
||
1304 | <+=?|> token : "constant.numeric",+=?|> |
||
1305 | <+=?|> regex : numRe + "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)"+=?|> |
||
1306 | <+=?|> }, {+=?|> |
||
1307 | <+=?|> token : "constant.numeric", // hex6 color+=?|> |
||
1308 | <+=?|> regex : "#[a-f0-9]{6}"+=?|> |
||
1309 | <+=?|> }, {+=?|> |
||
1310 | <+=?|> token : "constant.numeric", // hex3 color+=?|> |
||
1311 | <+=?|> regex : "#[a-f0-9]{3}"+=?|> |
||
1312 | <+=?|> }, {+=?|> |
||
1313 | <+=?|> token : "constant.numeric",+=?|> |
||
1314 | <+=?|> regex : numRe+=?|> |
||
1315 | <+=?|> }, {+=?|> |
||
1316 | <+=?|> token : ["support.function", "string", "support.function"],+=?|> |
||
1317 | <+=?|> regex : "(url\\()(.*)(\\))"+=?|> |
||
1318 | <+=?|> }, {+=?|> |
||
1319 | <+=?|> token : function(value) {+=?|> |
||
1320 | <+=?|> if (properties.hasOwnProperty(value.toLowerCase()))+=?|> |
||
1321 | <+=?|> return "support.type";+=?|> |
||
1322 | <+=?|> if (keywords.hasOwnProperty(value))+=?|> |
||
1323 | <+=?|> return "keyword";+=?|> |
||
1324 | <+=?|> else if (constants.hasOwnProperty(value))+=?|> |
||
1325 | <+=?|> return "constant.language";+=?|> |
||
1326 | <+=?|> else if (functions.hasOwnProperty(value))+=?|> |
||
1327 | <+=?|> return "support.function";+=?|> |
||
1328 | <+=?|> else if (colors.hasOwnProperty(value.toLowerCase()))+=?|> |
||
1329 | <+=?|> return "support.constant.color";+=?|> |
||
1330 | <+=?|> else if (tags.hasOwnProperty(value.toLowerCase()))+=?|> |
||
1331 | <+=?|> return "variable.language";+=?|> |
||
1332 | <+=?|> else+=?|> |
||
1333 | <+=?|> return "text";+=?|> |
||
1334 | <+=?|> },+=?|> |
||
1335 | <+=?|> regex : "\\-?[@a-z_][@a-z0-9_\\-]*"+=?|> |
||
1336 | <+=?|> }, {+=?|> |
||
1337 | <+=?|> token : "variable",+=?|> |
||
1338 | <+=?|> regex : "[a-z_\\-$][a-z0-9_\\-$]*\\b"+=?|> |
||
1339 | <+=?|> }, {+=?|> |
||
1340 | <+=?|> token: "variable.language",+=?|> |
||
1341 | <+=?|> regex: "#[a-z0-9-_]+"+=?|> |
||
1342 | <+=?|> }, {+=?|> |
||
1343 | <+=?|> token: "variable.language",+=?|> |
||
1344 | <+=?|> regex: "\\.[a-z0-9-_]+"+=?|> |
||
1345 | <+=?|> }, {+=?|> |
||
1346 | <+=?|> token: "variable.language",+=?|> |
||
1347 | <+=?|> regex: ":[a-z0-9-_]+"+=?|> |
||
1348 | <+=?|> }, {+=?|> |
||
1349 | <+=?|> token: "constant",+=?|> |
||
1350 | <+=?|> regex: "[a-z0-9-_]+"+=?|> |
||
1351 | <+=?|> }, {+=?|> |
||
1352 | <+=?|> token : "keyword.operator",+=?|> |
||
1353 | <+=?|> regex : "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"+=?|> |
||
1354 | <+=?|> }, {+=?|> |
||
1355 | <+=?|> token : "paren.lparen",+=?|> |
||
1356 | <+=?|> regex : "[[({]"+=?|> |
||
1357 | <+=?|> }, {+=?|> |
||
1358 | <+=?|> token : "paren.rparen",+=?|> |
||
1359 | <+=?|> regex : "[\\])}]"+=?|> |
||
1360 | <+=?|> }, {+=?|> |
||
1361 | <+=?|> token : "text",+=?|> |
||
1362 | <+=?|> regex : "\\s+"+=?|> |
||
1363 | <+=?|> }, {+=?|> |
||
1364 | <+=?|> caseInsensitive: true+=?|> |
||
1365 | <+=?|> }+=?|> |
||
1366 | <+=?|> ],+=?|> |
||
1367 | <+=?|> "comment" : [+=?|> |
||
1368 | <+=?|> {+=?|> |
||
1369 | <+=?|> token : "comment", // closing comment+=?|> |
||
1370 | <+=?|> regex : ".*?\\*\\/",+=?|> |
||
1371 | <+=?|> next : "start"+=?|> |
||
1372 | <+=?|> }, {+=?|> |
||
1373 | <+=?|> token : "comment", // comment spanning whole line+=?|> |
||
1374 | <+=?|> regex : ".+"+=?|> |
||
1375 | <+=?|> }+=?|> |
||
1376 | <+=?|> ],+=?|> |
||
1377 | <+=?|> "qqstring" : [+=?|> |
||
1378 | <+=?|> {+=?|> |
||
1379 | <+=?|> token : "string",+=?|> |
||
1380 | <+=?|> regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',+=?|> |
||
1381 | <+=?|> next : "start"+=?|> |
||
1382 | <+=?|> }, {+=?|> |
||
1383 | <+=?|> token : "string",+=?|> |
||
1384 | <+=?|> regex : '.+'+=?|> |
||
1385 | <+=?|> }+=?|> |
||
1386 | <+=?|> ],+=?|> |
||
1387 | <+=?|> "qstring" : [+=?|> |
||
1388 | <+=?|> {+=?|> |
||
1389 | <+=?|> token : "string",+=?|> |
||
1390 | <+=?|> regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",+=?|> |
||
1391 | <+=?|> next : "start"+=?|> |
||
1392 | <+=?|> }, {+=?|> |
||
1393 | <+=?|> token : "string",+=?|> |
||
1394 | <+=?|> regex : '.+'+=?|> |
||
1395 | <+=?|> }+=?|> |
||
1396 | <+=?|> ]+=?|> |
||
1397 | <+=?|> };+=?|> |
||
1398 | <+=?|>};+=?|> |
||
1399 | |||
1400 | <+=?|>oop.inherits(ScssHighlightRules, TextHighlightRules);+=?|> |
||
1401 | |||
1402 | <+=?|>exports.ScssHighlightRules = ScssHighlightRules;+=?|> |
||
1403 | |||
1404 | <+=?|>});+=?|> |
||
1405 | |||
1406 | <+=?|>ace.define("ace/mode/less_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module) {+=?|> |
||
1407 | <+=?|>"use strict";+=?|> |
||
1408 | |||
1409 | <+=?|>var oop = require("../lib/oop");+=?|> |
||
1410 | <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;+=?|> |
||
1411 | <+=?|>var CssHighlightRules = require('./css_highlight_rules');+=?|> |
||
1412 | |||
1413 | <+=?|>var LessHighlightRules = function() {+=?|> |
||
1414 | |||
1415 | |||
1416 | <+=?|> var keywordList = "@import|@media|@font-face|@keyframes|@-webkit-keyframes|@supports|" + +=?|> |
||
1417 | <+=?|> "@charset|@plugin|@namespace|@document|@page|@viewport|@-ms-viewport|" ++=?|> |
||
1418 | <+=?|> "or|and|when|not";+=?|> |
||
1419 | |||
1420 | <+=?|> var keywords = keywordList.split('|');+=?|> |
||
1421 | |||
1422 | <+=?|> var properties = CssHighlightRules.supportType.split('|');+=?|> |
||
1423 | |||
1424 | <+=?|> var keywordMapper = this.createKeywordMapper({+=?|> |
||
1425 | <+=?|> "support.constant": CssHighlightRules.supportConstant,+=?|> |
||
1426 | <+=?|> "keyword": keywordList,+=?|> |
||
1427 | <+=?|> "support.constant.color": CssHighlightRules.supportConstantColor,+=?|> |
||
1428 | <+=?|> "support.constant.fonts": CssHighlightRules.supportConstantFonts+=?|> |
||
1429 | <+=?|> }, "identifier", true); +=?|> |
||
1430 | |||
1431 | <+=?|> var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";+=?|> |
||
1432 | |||
1433 | <+=?|> this.$rules = {+=?|> |
||
1434 | <+=?|> "start" : [+=?|> |
||
1435 | <+=?|> {+=?|> |
||
1436 | <+=?|> token : "comment",+=?|> |
||
1437 | <+=?|> regex : "\\/\\/.*$"+=?|> |
||
1438 | <+=?|> },+=?|> |
||
1439 | <+=?|> {+=?|> |
||
1440 | <+=?|> token : "comment", // multi line comment+=?|> |
||
1441 | <+=?|> regex : "\\/\\*",+=?|> |
||
1442 | <+=?|> next : "comment"+=?|> |
||
1443 | <+=?|> }, {+=?|> |
||
1444 | <+=?|> token : "string", // single line+=?|> |
||
1445 | <+=?|> regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'+=?|> |
||
1446 | <+=?|> }, {+=?|> |
||
1447 | <+=?|> token : "string", // single line+=?|> |
||
1448 | <+=?|> regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"+=?|> |
||
1449 | <+=?|> }, {+=?|> |
||
1450 | <+=?|> token : ["constant.numeric", "keyword"],+=?|> |
||
1451 | <+=?|> 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|%)"+=?|> |
||
1452 | <+=?|> }, {+=?|> |
||
1453 | <+=?|> token : "constant.numeric", // hex6 color+=?|> |
||
1454 | <+=?|> regex : "#[a-f0-9]{6}"+=?|> |
||
1455 | <+=?|> }, {+=?|> |
||
1456 | <+=?|> token : "constant.numeric", // hex3 color+=?|> |
||
1457 | <+=?|> regex : "#[a-f0-9]{3}"+=?|> |
||
1458 | <+=?|> }, {+=?|> |
||
1459 | <+=?|> token : "constant.numeric",+=?|> |
||
1460 | <+=?|> regex : numRe+=?|> |
||
1461 | <+=?|> }, {+=?|> |
||
1462 | <+=?|> token : ["support.function", "paren.lparen", "string", "paren.rparen"],+=?|> |
||
1463 | <+=?|> regex : "(url)(\\()(.*)(\\))"+=?|> |
||
1464 | <+=?|> }, {+=?|> |
||
1465 | <+=?|> token : ["support.function", "paren.lparen"],+=?|> |
||
1466 | <+=?|> regex : "(:extend|[a-z0-9_\\-]+)(\\()"+=?|> |
||
1467 | <+=?|> }, {+=?|> |
||
1468 | <+=?|> token : function(value) {+=?|> |
||
1469 | <+=?|> if (keywords.indexOf(value.toLowerCase()) > -1)+=?|> |
||
1470 | <+=?|> return "keyword";+=?|> |
||
1471 | <+=?|> else+=?|> |
||
1472 | <+=?|> return "variable";+=?|> |
||
1473 | <+=?|> },+=?|> |
||
1474 | <+=?|> regex : "[@\\$][a-z0-9_\\-@\\$]*\\b"+=?|> |
||
1475 | <+=?|> }, {+=?|> |
||
1476 | <+=?|> token : "variable",+=?|> |
||
1477 | <+=?|> regex : "[@\\$]\\{[a-z0-9_\\-@\\$]*\\}"+=?|> |
||
1478 | <+=?|> }, {+=?|> |
||
1479 | <+=?|> token : function(first, second) {+=?|> |
||
1480 | <+=?|> if(properties.indexOf(first.toLowerCase()) > -1) {+=?|> |
||
1481 | <+=?|> return ["support.type.property", "text"];+=?|> |
||
1482 | <+=?|> }+=?|> |
||
1483 | <+=?|> else {+=?|> |
||
1484 | <+=?|> return ["support.type.unknownProperty", "text"];+=?|> |
||
1485 | <+=?|> }+=?|> |
||
1486 | <+=?|> },+=?|> |
||
1487 | <+=?|> regex : "([a-z0-9-_]+)(\\s*:)"+=?|> |
||
1488 | <+=?|> }, {+=?|> |
||
1489 | <+=?|> token : "keyword",+=?|> |
||
1490 | <+=?|> regex : "&" // special case - always treat as keyword+=?|> |
||
1491 | <+=?|> }, {+=?|> |
||
1492 | <+=?|> token : keywordMapper,+=?|> |
||
1493 | <+=?|> regex : "\\-?[@a-z_][@a-z0-9_\\-]*"+=?|> |
||
1494 | <+=?|> }, {+=?|> |
||
1495 | <+=?|> token: "variable.language",+=?|> |
||
1496 | <+=?|> regex: "#[a-z0-9-_]+"+=?|> |
||
1497 | <+=?|> }, {+=?|> |
||
1498 | <+=?|> token: "variable.language",+=?|> |
||
1499 | <+=?|> regex: "\\.[a-z0-9-_]+"+=?|> |
||
1500 | <+=?|> }, {+=?|> |
||
1501 | <+=?|> token: "variable.language",+=?|> |
||
1502 | <+=?|> regex: ":[a-z_][a-z0-9-_]*"+=?|> |
||
1503 | <+=?|> }, {+=?|> |
||
1504 | <+=?|> token: "constant",+=?|> |
||
1505 | <+=?|> regex: "[a-z0-9-_]+"+=?|> |
||
1506 | <+=?|> }, {+=?|> |
||
1507 | <+=?|> token : "keyword.operator",+=?|> |
||
1508 | <+=?|> regex : "<|>|<=|>=|=|!=|-|%|\\+|\\*"+=?|> |
||
1509 | <+=?|> }, {+=?|> |
||
1510 | <+=?|> token : "paren.lparen",+=?|> |
||
1511 | <+=?|> regex : "[[({]"+=?|> |
||
1512 | <+=?|> }, {+=?|> |
||
1513 | <+=?|> token : "paren.rparen",+=?|> |
||
1514 | <+=?|> regex : "[\\])}]"+=?|> |
||
1515 | <+=?|> }, {+=?|> |
||
1516 | <+=?|> token : "text",+=?|> |
||
1517 | <+=?|> regex : "\\s+"+=?|> |
||
1518 | <+=?|> }, {+=?|> |
||
1519 | <+=?|> caseInsensitive: true+=?|> |
||
1520 | <+=?|> }+=?|> |
||
1521 | <+=?|> ],+=?|> |
||
1522 | <+=?|> "comment" : [+=?|> |
||
1523 | <+=?|> {+=?|> |
||
1524 | <+=?|> token : "comment", // closing comment+=?|> |
||
1525 | <+=?|> regex : ".*?\\*\\/",+=?|> |
||
1526 | <+=?|> next : "start"+=?|> |
||
1527 | <+=?|> }, {+=?|> |
||
1528 | <+=?|> token : "comment", // comment spanning whole line+=?|> |
||
1529 | <+=?|> regex : ".+"+=?|> |
||
1530 | <+=?|> }+=?|> |
||
1531 | <+=?|> ]+=?|> |
||
1532 | <+=?|> };+=?|> |
||
1533 | <+=?|> this.normalizeRules();+=?|> |
||
1534 | <+=?|>};+=?|> |
||
1535 | |||
1536 | <+=?|>oop.inherits(LessHighlightRules, TextHighlightRules);+=?|> |
||
1537 | |||
1538 | <+=?|>exports.LessHighlightRules = LessHighlightRules;+=?|> |
||
1539 | |||
1540 | <+=?|>});+=?|> |
||
1541 | |||
1542 | <+=?|>ace.define("ace/mode/coffee_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {+=?|> |
||
1543 | <+=?|>"use strict";+=?|> |
||
1544 | |||
1545 | <+=?|> var oop = require("../lib/oop");+=?|> |
||
1546 | <+=?|> var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;+=?|> |
||
1547 | |||
1548 | <+=?|> oop.inherits(CoffeeHighlightRules, TextHighlightRules);+=?|> |
||
1549 | |||
1550 | <+=?|> function CoffeeHighlightRules() {+=?|> |
||
1551 | <+=?|> var identifier = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*";+=?|> |
||
1552 | |||
1553 | <+=?|> var keywords = (+=?|> |
||
1554 | <+=?|> "this|throw|then|try|typeof|super|switch|return|break|by|continue|" ++=?|> |
||
1555 | <+=?|> "catch|class|in|instanceof|is|isnt|if|else|extends|for|own|" ++=?|> |
||
1556 | <+=?|> "finally|function|while|when|new|no|not|delete|debugger|do|loop|of|off|" ++=?|> |
||
1557 | <+=?|> "or|on|unless|until|and|yes"+=?|> |
||
1558 | <+=?|> );+=?|> |
||
1559 | |||
1560 | <+=?|> var langConstant = (+=?|> |
||
1561 | <+=?|> "true|false|null|undefined|NaN|Infinity"+=?|> |
||
1562 | <+=?|> );+=?|> |
||
1563 | |||
1564 | <+=?|> var illegal = (+=?|> |
||
1565 | <+=?|> "case|const|default|function|var|void|with|enum|export|implements|" ++=?|> |
||
1566 | <+=?|> "interface|let|package|private|protected|public|static|yield"+=?|> |
||
1567 | <+=?|> );+=?|> |
||
1568 | |||
1569 | <+=?|> var supportClass = (+=?|> |
||
1570 | <+=?|> "Array|Boolean|Date|Function|Number|Object|RegExp|ReferenceError|String|" ++=?|> |
||
1571 | <+=?|> "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" ++=?|> |
||
1572 | <+=?|> "SyntaxError|TypeError|URIError|" ++=?|> |
||
1573 | <+=?|> "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" ++=?|> |
||
1574 | <+=?|> "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray"+=?|> |
||
1575 | <+=?|> );+=?|> |
||
1576 | |||
1577 | <+=?|> var supportFunction = (+=?|> |
||
1578 | <+=?|> "Math|JSON|isNaN|isFinite|parseInt|parseFloat|encodeURI|" ++=?|> |
||
1579 | <+=?|> "encodeURIComponent|decodeURI|decodeURIComponent|String|"+=?|> |
||
1580 | <+=?|> );+=?|> |
||
1581 | |||
1582 | <+=?|> var variableLanguage = (+=?|> |
||
1583 | <+=?|> "window|arguments|prototype|document"+=?|> |
||
1584 | <+=?|> );+=?|> |
||
1585 | |||
1586 | <+=?|> var keywordMapper = this.createKeywordMapper({+=?|> |
||
1587 | <+=?|> "keyword": keywords,+=?|> |
||
1588 | <+=?|> "constant.language": langConstant,+=?|> |
||
1589 | <+=?|> "invalid.illegal": illegal,+=?|> |
||
1590 | <+=?|> "language.support.class": supportClass,+=?|> |
||
1591 | <+=?|> "language.support.function": supportFunction,+=?|> |
||
1592 | <+=?|> "variable.language": variableLanguage+=?|> |
||
1593 | <+=?|> }, "identifier");+=?|> |
||
1594 | |||
1595 | <+=?|> var functionRule = {+=?|> |
||
1596 | <+=?|> token: ["paren.lparen", "variable.parameter", "paren.rparen", "text", "storage.type"],+=?|> |
||
1597 | <+=?|> regex: /(?:(\()((?:"[^")]*?"|'[^')]*?'|\/[^\/)]*?\/|[^()"'\/])*?)(\))(\s*))?([\-=]>)/.source+=?|> |
||
1598 | <+=?|> };+=?|> |
||
1599 | |||
1600 | <+=?|> var stringEscape = /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)/;+=?|> |
||
1601 | |||
1602 | <+=?|> this.$rules = {+=?|> |
||
1603 | <+=?|> start : [+=?|> |
||
1604 | <+=?|> {+=?|> |
||
1605 | <+=?|> token : "constant.numeric",+=?|> |
||
1606 | <+=?|> regex : "(?:0x[\\da-fA-F]+|(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[eE][+-]?\\d+)?)"+=?|> |
||
1607 | <+=?|> }, {+=?|> |
||
1608 | <+=?|> stateName: "qdoc",+=?|> |
||
1609 | <+=?|> token : "string", regex : "'''", next : [+=?|> |
||
1610 | <+=?|> {token : "string", regex : "'''", next : "start"},+=?|> |
||
1611 | <+=?|> {token : "constant.language.escape", regex : stringEscape},+=?|> |
||
1612 | <+=?|> {defaultToken: "string"}+=?|> |
||
1613 | <+=?|> ]+=?|> |
||
1614 | <+=?|> }, {+=?|> |
||
1615 | <+=?|> stateName: "qqdoc",+=?|> |
||
1616 | <+=?|> token : "string",+=?|> |
||
1617 | <+=?|> regex : '"""',+=?|> |
||
1618 | <+=?|> next : [+=?|> |
||
1619 | <+=?|> {token : "string", regex : '"""', next : "start"},+=?|> |
||
1620 | <+=?|> {token : "paren.string", regex : '#{', push : "start"},+=?|> |
||
1621 | <+=?|> {token : "constant.language.escape", regex : stringEscape},+=?|> |
||
1622 | <+=?|> {defaultToken: "string"}+=?|> |
||
1623 | <+=?|> ]+=?|> |
||
1624 | <+=?|> }, {+=?|> |
||
1625 | <+=?|> stateName: "qstring",+=?|> |
||
1626 | <+=?|> token : "string", regex : "'", next : [+=?|> |
||
1627 | <+=?|> {token : "string", regex : "'", next : "start"},+=?|> |
||
1628 | <+=?|> {token : "constant.language.escape", regex : stringEscape},+=?|> |
||
1629 | <+=?|> {defaultToken: "string"}+=?|> |
||
1630 | <+=?|> ]+=?|> |
||
1631 | <+=?|> }, {+=?|> |
||
1632 | <+=?|> stateName: "qqstring",+=?|> |
||
1633 | <+=?|> token : "string.start", regex : '"', next : [+=?|> |
||
1634 | <+=?|> {token : "string.end", regex : '"', next : "start"},+=?|> |
||
1635 | <+=?|> {token : "paren.string", regex : '#{', push : "start"},+=?|> |
||
1636 | <+=?|> {token : "constant.language.escape", regex : stringEscape},+=?|> |
||
1637 | <+=?|> {defaultToken: "string"}+=?|> |
||
1638 | <+=?|> ]+=?|> |
||
1639 | <+=?|> }, {+=?|> |
||
1640 | <+=?|> stateName: "js",+=?|> |
||
1641 | <+=?|> token : "string", regex : "`", next : [+=?|> |
||
1642 | <+=?|> {token : "string", regex : "`", next : "start"},+=?|> |
||
1643 | <+=?|> {token : "constant.language.escape", regex : stringEscape},+=?|> |
||
1644 | <+=?|> {defaultToken: "string"}+=?|> |
||
1645 | <+=?|> ]+=?|> |
||
1646 | <+=?|> }, {+=?|> |
||
1647 | <+=?|> regex: "[{}]", onMatch: function(val, state, stack) {+=?|> |
||
1648 | <+=?|> this.next = "";+=?|> |
||
1649 | <+=?|> if (val == "{" && stack.length) {+=?|> |
||
1650 | <+=?|> stack.unshift("start", state);+=?|> |
||
1651 | <+=?|> return "paren";+=?|> |
||
1652 | <+=?|> }+=?|> |
||
1653 | <+=?|> if (val == "}" && stack.length) {+=?|> |
||
1654 | <+=?|> stack.shift();+=?|> |
||
1655 | <+=?|> this.next = stack.shift() || "";+=?|> |
||
1656 | <+=?|> if (this.next.indexOf("string") != -1)+=?|> |
||
1657 | <+=?|> return "paren.string";+=?|> |
||
1658 | <+=?|> }+=?|> |
||
1659 | <+=?|> return "paren";+=?|> |
||
1660 | <+=?|> }+=?|> |
||
1661 | <+=?|> }, {+=?|> |
||
1662 | <+=?|> token : "string.regex",+=?|> |
||
1663 | <+=?|> regex : "///",+=?|> |
||
1664 | <+=?|> next : "heregex"+=?|> |
||
1665 | <+=?|> }, {+=?|> |
||
1666 | <+=?|> token : "string.regex",+=?|> |
||
1667 | <+=?|> regex : /(?:\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)(?:[imgy]{0,4})(?!\w)/+=?|> |
||
1668 | <+=?|> }, {+=?|> |
||
1669 | <+=?|> token : "comment",+=?|> |
||
1670 | <+=?|> regex : "###(?!#)",+=?|> |
||
1671 | <+=?|> next : "comment"+=?|> |
||
1672 | <+=?|> }, {+=?|> |
||
1673 | <+=?|> token : "comment",+=?|> |
||
1674 | <+=?|> regex : "#.*"+=?|> |
||
1675 | <+=?|> }, {+=?|> |
||
1676 | <+=?|> token : ["punctuation.operator", "text", "identifier"],+=?|> |
||
1677 | <+=?|> regex : "(\\.)(\\s*)(" + illegal + ")"+=?|> |
||
1678 | <+=?|> }, {+=?|> |
||
1679 | <+=?|> token : "punctuation.operator",+=?|> |
||
1680 | <+=?|> regex : "\\.{1,3}"+=?|> |
||
1681 | <+=?|> }, {+=?|> |
||
1682 | <+=?|> token : ["keyword", "text", "language.support.class",+=?|> |
||
1683 | <+=?|> "text", "keyword", "text", "language.support.class"],+=?|> |
||
1684 | <+=?|> regex : "(class)(\\s+)(" + identifier + ")(?:(\\s+)(extends)(\\s+)(" + identifier + "))?"+=?|> |
||
1685 | <+=?|> }, {+=?|> |
||
1686 | <+=?|> token : ["entity.name.function", "text", "keyword.operator", "text"].concat(functionRule.token),+=?|> |
||
1687 | <+=?|> regex : "(" + identifier + ")(\\s*)([=:])(\\s*)" + functionRule.regex+=?|> |
||
1688 | <+=?|> }, +=?|> |
||
1689 | <+=?|> functionRule, +=?|> |
||
1690 | <+=?|> {+=?|> |
||
1691 | <+=?|> token : "variable",+=?|> |
||
1692 | <+=?|> regex : "@(?:" + identifier + ")?"+=?|> |
||
1693 | <+=?|> }, {+=?|> |
||
1694 | <+=?|> token: keywordMapper,+=?|> |
||
1695 | <+=?|> regex : identifier+=?|> |
||
1696 | <+=?|> }, {+=?|> |
||
1697 | <+=?|> token : "punctuation.operator",+=?|> |
||
1698 | <+=?|> regex : "\\,|\\."+=?|> |
||
1699 | <+=?|> }, {+=?|> |
||
1700 | <+=?|> token : "storage.type",+=?|> |
||
1701 | <+=?|> regex : "[\\-=]>"+=?|> |
||
1702 | <+=?|> }, {+=?|> |
||
1703 | <+=?|> token : "keyword.operator",+=?|> |
||
1704 | <+=?|> regex : "(?:[-+*/%<>&|^!?=]=|>>>=?|\\-\\-|\\+\\+|::|&&=|\\|\\|=|<<=|>>=|\\?\\.|\\.{2,3}|[!*+-=><])"+=?|> |
||
1705 | <+=?|> }, {+=?|> |
||
1706 | <+=?|> token : "paren.lparen",+=?|> |
||
1707 | <+=?|> regex : "[({[]"+=?|> |
||
1708 | <+=?|> }, {+=?|> |
||
1709 | <+=?|> token : "paren.rparen",+=?|> |
||
1710 | <+=?|> regex : "[\\]})]"+=?|> |
||
1711 | <+=?|> }, {+=?|> |
||
1712 | <+=?|> token : "text",+=?|> |
||
1713 | <+=?|> regex : "\\s+"+=?|> |
||
1714 | <+=?|> }],+=?|> |
||
1715 | |||
1716 | |||
1717 | <+=?|> heregex : [{+=?|> |
||
1718 | <+=?|> token : "string.regex",+=?|> |
||
1719 | <+=?|> regex : '.*?///[imgy]{0,4}',+=?|> |
||
1720 | <+=?|> next : "start"+=?|> |
||
1721 | <+=?|> }, {+=?|> |
||
1722 | <+=?|> token : "comment.regex",+=?|> |
||
1723 | <+=?|> regex : "\\s+(?:#.*)?"+=?|> |
||
1724 | <+=?|> }, {+=?|> |
||
1725 | <+=?|> token : "string.regex",+=?|> |
||
1726 | <+=?|> regex : "\\S+"+=?|> |
||
1727 | <+=?|> }],+=?|> |
||
1728 | |||
1729 | <+=?|> comment : [{+=?|> |
||
1730 | <+=?|> token : "comment",+=?|> |
||
1731 | <+=?|> regex : '###',+=?|> |
||
1732 | <+=?|> next : "start"+=?|> |
||
1733 | <+=?|> }, {+=?|> |
||
1734 | <+=?|> defaultToken : "comment"+=?|> |
||
1735 | <+=?|> }]+=?|> |
||
1736 | <+=?|> };+=?|> |
||
1737 | <+=?|> this.normalizeRules();+=?|> |
||
1738 | <+=?|> }+=?|> |
||
1739 | |||
1740 | <+=?|> exports.CoffeeHighlightRules = CoffeeHighlightRules;+=?|> |
||
1741 | <+=?|>});+=?|> |
||
1742 | |||
1743 | <+=?|>ace.define("ace/mode/jade_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/markdown_highlight_rules","ace/mode/scss_highlight_rules","ace/mode/less_highlight_rules","ace/mode/coffee_highlight_rules","ace/mode/javascript_highlight_rules"], function(require, exports, module) {+=?|> |
||
1744 | <+=?|>"use strict";+=?|> |
||
1745 | |||
1746 | <+=?|>var oop = require("../lib/oop");+=?|> |
||
1747 | <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;+=?|> |
||
1748 | <+=?|>var MarkdownHighlightRules = require("./markdown_highlight_rules").MarkdownHighlightRules;+=?|> |
||
1749 | <+=?|>var SassHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;+=?|> |
||
1750 | <+=?|>var LessHighlightRules = require("./less_highlight_rules").LessHighlightRules;+=?|> |
||
1751 | <+=?|>var CoffeeHighlightRules = require("./coffee_highlight_rules").CoffeeHighlightRules;+=?|> |
||
1752 | <+=?|>var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;+=?|> |
||
1753 | |||
1754 | <+=?|>function mixin_embed(tag, prefix) {+=?|> |
||
1755 | <+=?|> return { +=?|> |
||
1756 | <+=?|> token : "entity.name.function.jade",+=?|> |
||
1757 | <+=?|> regex : "^\\s*\\:" + tag,+=?|> |
||
1758 | <+=?|> next : prefix + "start"+=?|> |
||
1759 | <+=?|> };+=?|> |
||
1760 | <+=?|>}+=?|> |
||
1761 | |||
1762 | <+=?|>var JadeHighlightRules = function() {+=?|> |
||
1763 | |||
1764 | <+=?|> var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex+=?|> |
||
1765 | <+=?|> "u[0-9a-fA-F]{4}|" + // unicode+=?|> |
||
1766 | <+=?|> "[0-2][0-7]{0,2}|" + // oct+=?|> |
||
1767 | <+=?|> "3[0-6][0-7]?|" + // oct+=?|> |
||
1768 | <+=?|> "37[0-7]?|" + // oct+=?|> |
||
1769 | <+=?|> "[4-7][0-7]?|" + //oct+=?|> |
||
1770 | <+=?|> ".)";+=?|> |
||
1771 | |||
1772 | <+=?|> this.$rules = +=?|> |
||
1773 | <+=?|> {+=?|> |
||
1774 | <+=?|> "start": [+=?|> |
||
1775 | <+=?|> {+=?|> |
||
1776 | <+=?|> token: "keyword.control.import.include.jade",+=?|> |
||
1777 | <+=?|> regex: "\\s*\\binclude\\b"+=?|> |
||
1778 | <+=?|> },+=?|> |
||
1779 | <+=?|> {+=?|> |
||
1780 | <+=?|> token: "keyword.other.doctype.jade",+=?|> |
||
1781 | <+=?|> regex: "^!!!\\s*(?:[a-zA-Z0-9-_]+)?"+=?|> |
||
1782 | <+=?|> },+=?|> |
||
1783 | <+=?|> {+=?|> |
||
1784 | <+=?|> onMatch: function(value, currentState, stack) {+=?|> |
||
1785 | <+=?|> stack.unshift(this.next, value.length - 2, currentState);+=?|> |
||
1786 | <+=?|> return "comment";+=?|> |
||
1787 | <+=?|> },+=?|> |
||
1788 | <+=?|> regex: /^\s*\/\//,+=?|> |
||
1789 | <+=?|> next: "comment_block"+=?|> |
||
1790 | <+=?|> },+=?|> |
||
1791 | <+=?|> mixin_embed("markdown", "markdown-"),+=?|> |
||
1792 | <+=?|> mixin_embed("sass", "sass-"),+=?|> |
||
1793 | <+=?|> mixin_embed("less", "less-"),+=?|> |
||
1794 | <+=?|> mixin_embed("coffee", "coffee-"),+=?|> |
||
1795 | <+=?|> {+=?|> |
||
1796 | <+=?|> token: [ "storage.type.function.jade",+=?|> |
||
1797 | <+=?|> "entity.name.function.jade",+=?|> |
||
1798 | <+=?|> "punctuation.definition.parameters.begin.jade",+=?|> |
||
1799 | <+=?|> "variable.parameter.function.jade",+=?|> |
||
1800 | <+=?|> "punctuation.definition.parameters.end.jade"+=?|> |
||
1801 | <+=?|> ],+=?|> |
||
1802 | <+=?|> regex: "^(\\s*mixin)( [\\w\\-]+)(\\s*\\()(.*?)(\\))"+=?|> |
||
1803 | <+=?|> },+=?|> |
||
1804 | <+=?|> {+=?|> |
||
1805 | <+=?|> token: [ "storage.type.function.jade", "entity.name.function.jade"],+=?|> |
||
1806 | <+=?|> regex: "^(\\s*mixin)( [\\w\\-]+)"+=?|> |
||
1807 | <+=?|> },+=?|> |
||
1808 | <+=?|> {+=?|> |
||
1809 | <+=?|> token: "source.js.embedded.jade",+=?|> |
||
1810 | <+=?|> regex: "^\\s*(?:-|=|!=)",+=?|> |
||
1811 | <+=?|> next: "js-start"+=?|> |
||
1812 | <+=?|> },+=?|> |
||
1813 | <+=?|> {+=?|> |
||
1814 | <+=?|> token: "string.interpolated.jade",+=?|> |
||
1815 | <+=?|> regex: "[#!]\\{[^\\}]+\\}"+=?|> |
||
1816 | <+=?|> },+=?|> |
||
1817 | <+=?|> {+=?|> |
||
1818 | <+=?|> token: "meta.tag.any.jade",+=?|> |
||
1819 | <+=?|> regex: /^\s*(?!\w+:)(?:[\w-]+|(?=\.|#)])/,+=?|> |
||
1820 | <+=?|> next: "tag_single"+=?|> |
||
1821 | <+=?|> },+=?|> |
||
1822 | <+=?|> {+=?|> |
||
1823 | <+=?|> token: "suport.type.attribute.id.jade",+=?|> |
||
1824 | <+=?|> regex: "#\\w+"+=?|> |
||
1825 | <+=?|> },+=?|> |
||
1826 | <+=?|> {+=?|> |
||
1827 | <+=?|> token: "suport.type.attribute.class.jade",+=?|> |
||
1828 | <+=?|> regex: "\\.\\w+"+=?|> |
||
1829 | <+=?|> },+=?|> |
||
1830 | <+=?|> {+=?|> |
||
1831 | <+=?|> token: "punctuation",+=?|> |
||
1832 | <+=?|> regex: "\\s*(?:\\()",+=?|> |
||
1833 | <+=?|> next: "tag_attributes"+=?|> |
||
1834 | <+=?|> }+=?|> |
||
1835 | <+=?|> ],+=?|> |
||
1836 | <+=?|> "comment_block": [+=?|> |
||
1837 | <+=?|> {regex: /^\s*(?:\/\/)?/, onMatch: function(value, currentState, stack) {+=?|> |
||
1838 | <+=?|> if (value.length <= stack[1]) {+=?|> |
||
1839 | <+=?|> if (value.slice(-1) == "/") {+=?|> |
||
1840 | <+=?|> stack[1] = value.length - 2;+=?|> |
||
1841 | <+=?|> this.next = "";+=?|> |
||
1842 | <+=?|> return "comment";+=?|> |
||
1843 | <+=?|> }+=?|> |
||
1844 | <+=?|> stack.shift();+=?|> |
||
1845 | <+=?|> stack.shift();+=?|> |
||
1846 | <+=?|> this.next = stack.shift();+=?|> |
||
1847 | <+=?|> return "text";+=?|> |
||
1848 | <+=?|> } else {+=?|> |
||
1849 | <+=?|> this.next = "";+=?|> |
||
1850 | <+=?|> return "comment";+=?|> |
||
1851 | <+=?|> }+=?|> |
||
1852 | <+=?|> }, next: "start"},+=?|> |
||
1853 | <+=?|> {defaultToken: "comment"}+=?|> |
||
1854 | <+=?|> ],+=?|> |
||
1855 | <+=?|> "tag_single": [+=?|> |
||
1856 | <+=?|> {+=?|> |
||
1857 | <+=?|> token: "entity.other.attribute-name.class.jade",+=?|> |
||
1858 | <+=?|> regex: "\\.[\\w-]+"+=?|> |
||
1859 | <+=?|> },+=?|> |
||
1860 | <+=?|> {+=?|> |
||
1861 | <+=?|> token: "entity.other.attribute-name.id.jade",+=?|> |
||
1862 | <+=?|> regex: "#[\\w-]+"+=?|> |
||
1863 | <+=?|> },+=?|> |
||
1864 | <+=?|> {+=?|> |
||
1865 | <+=?|> token: ["text", "punctuation"],+=?|> |
||
1866 | <+=?|> regex: "($)|((?!\\.|#|=|-))",+=?|> |
||
1867 | <+=?|> next: "start"+=?|> |
||
1868 | <+=?|> }+=?|> |
||
1869 | <+=?|> ],+=?|> |
||
1870 | <+=?|> "tag_attributes": [ +=?|> |
||
1871 | <+=?|> {+=?|> |
||
1872 | <+=?|> token : "string",+=?|> |
||
1873 | <+=?|> regex : "'(?=.)",+=?|> |
||
1874 | <+=?|> next : "qstring"+=?|> |
||
1875 | <+=?|> }, +=?|> |
||
1876 | <+=?|> {+=?|> |
||
1877 | <+=?|> token : "string",+=?|> |
||
1878 | <+=?|> regex : '"(?=.)',+=?|> |
||
1879 | <+=?|> next : "qqstring"+=?|> |
||
1880 | <+=?|> },+=?|> |
||
1881 | <+=?|> {+=?|> |
||
1882 | <+=?|> token: ["entity.other.attribute-name.jade", "punctuation"],+=?|> |
||
1883 | <+=?|> regex: "([a-zA-Z:\\.-]+)(=)?",+=?|> |
||
1884 | <+=?|> next: "attribute_strings"+=?|> |
||
1885 | <+=?|> },+=?|> |
||
1886 | <+=?|> {+=?|> |
||
1887 | <+=?|> token: "punctuation",+=?|> |
||
1888 | <+=?|> regex: "\\)",+=?|> |
||
1889 | <+=?|> next: "start"+=?|> |
||
1890 | <+=?|> }+=?|> |
||
1891 | <+=?|> ],+=?|> |
||
1892 | <+=?|> "attribute_strings": [+=?|> |
||
1893 | <+=?|> {+=?|> |
||
1894 | <+=?|> token : "string",+=?|> |
||
1895 | <+=?|> regex : "'(?=.)",+=?|> |
||
1896 | <+=?|> next : "qstring"+=?|> |
||
1897 | <+=?|> }, +=?|> |
||
1898 | <+=?|> {+=?|> |
||
1899 | <+=?|> token : "string",+=?|> |
||
1900 | <+=?|> regex : '"(?=.)',+=?|> |
||
1901 | <+=?|> next : "qqstring"+=?|> |
||
1902 | <+=?|> },+=?|> |
||
1903 | <+=?|> {+=?|> |
||
1904 | <+=?|> token : "string",+=?|> |
||
1905 | <+=?|> regex : '(?=\\S)',+=?|> |
||
1906 | <+=?|> next : "tag_attributes"+=?|> |
||
1907 | <+=?|> }+=?|> |
||
1908 | <+=?|> ],+=?|> |
||
1909 | <+=?|> "qqstring" : [+=?|> |
||
1910 | <+=?|> {+=?|> |
||
1911 | <+=?|> token : "constant.language.escape",+=?|> |
||
1912 | <+=?|> regex : escapedRe+=?|> |
||
1913 | <+=?|> }, {+=?|> |
||
1914 | <+=?|> token : "string",+=?|> |
||
1915 | <+=?|> regex : '[^"\\\\]+'+=?|> |
||
1916 | <+=?|> }, {+=?|> |
||
1917 | <+=?|> token : "string",+=?|> |
||
1918 | <+=?|> regex : "\\\\$",+=?|> |
||
1919 | <+=?|> next : "qqstring"+=?|> |
||
1920 | <+=?|> }, {+=?|> |
||
1921 | <+=?|> token : "string",+=?|> |
||
1922 | <+=?|> regex : '"|$',+=?|> |
||
1923 | <+=?|> next : "tag_attributes"+=?|> |
||
1924 | <+=?|> }+=?|> |
||
1925 | <+=?|> ],+=?|> |
||
1926 | <+=?|> "qstring" : [+=?|> |
||
1927 | <+=?|> {+=?|> |
||
1928 | <+=?|> token : "constant.language.escape",+=?|> |
||
1929 | <+=?|> regex : escapedRe+=?|> |
||
1930 | <+=?|> }, {+=?|> |
||
1931 | <+=?|> token : "string",+=?|> |
||
1932 | <+=?|> regex : "[^'\\\\]+"+=?|> |
||
1933 | <+=?|> }, {+=?|> |
||
1934 | <+=?|> token : "string",+=?|> |
||
1935 | <+=?|> regex : "\\\\$",+=?|> |
||
1936 | <+=?|> next : "qstring"+=?|> |
||
1937 | <+=?|> }, {+=?|> |
||
1938 | <+=?|> token : "string",+=?|> |
||
1939 | <+=?|> regex : "'|$",+=?|> |
||
1940 | <+=?|> next : "tag_attributes"+=?|> |
||
1941 | <+=?|> }+=?|> |
||
1942 | <+=?|> ]+=?|> |
||
1943 | <+=?|>};+=?|> |
||
1944 | |||
1945 | <+=?|> this.embedRules(JavaScriptHighlightRules, "js-", [{+=?|> |
||
1946 | <+=?|> token: "text",+=?|> |
||
1947 | <+=?|> regex: ".$",+=?|> |
||
1948 | <+=?|> next: "start"+=?|> |
||
1949 | <+=?|> }]);+=?|> |
||
1950 | <+=?|>};+=?|> |
||
1951 | |||
1952 | <+=?|>oop.inherits(JadeHighlightRules, TextHighlightRules);+=?|> |
||
1953 | |||
1954 | <+=?|>exports.JadeHighlightRules = JadeHighlightRules;+=?|> |
||
1955 | <+=?|>});+=?|> |
||
1956 | |||
1957 | <+=?|>ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {+=?|> |
||
1958 | <+=?|>"use strict";+=?|> |
||
1959 | |||
1960 | <+=?|>var oop = require("../../lib/oop");+=?|> |
||
1961 | <+=?|>var BaseFoldMode = require("./fold_mode").FoldMode;+=?|> |
||
1962 | <+=?|>var Range = require("../../range").Range;+=?|> |
||
1963 | |||
1964 | <+=?|>var FoldMode = exports.FoldMode = function() {};+=?|> |
||
1965 | <+=?|>oop.inherits(FoldMode, BaseFoldMode);+=?|> |
||
1966 | |||
1967 | <+=?|>(function() {+=?|> |
||
1968 | |||
1969 | <+=?|> this.getFoldWidgetRange = function(session, foldStyle, row) {+=?|> |
||
1970 | <+=?|> var range = this.indentationBlock(session, row);+=?|> |
||
1971 | <+=?|> if (range)+=?|> |
||
1972 | <+=?|> return range;+=?|> |
||
1973 | |||
1974 | <+=?|> var re = /\S/;+=?|> |
||
1975 | <+=?|> var line = session.getLine(row);+=?|> |
||
1976 | <+=?|> var startLevel = line.search(re);+=?|> |
||
1977 | <+=?|> if (startLevel == -1 || line[startLevel] != "#")+=?|> |
||
1978 | <+=?|> return;+=?|> |
||
1979 | |||
1980 | <+=?|> var startColumn = line.length;+=?|> |
||
1981 | <+=?|> var maxRow = session.getLength();+=?|> |
||
1982 | <+=?|> var startRow = row;+=?|> |
||
1983 | <+=?|> var endRow = row;+=?|> |
||
1984 | |||
1985 | <+=?|> while (++row < maxRow) {+=?|> |
||
1986 | <+=?|> line = session.getLine(row);+=?|> |
||
1987 | <+=?|> var level = line.search(re);+=?|> |
||
1988 | |||
1989 | <+=?|> if (level == -1)+=?|> |
||
1990 | <+=?|> continue;+=?|> |
||
1991 | |||
1992 | <+=?|> if (line[level] != "#")+=?|> |
||
1993 | <+=?|> break;+=?|> |
||
1994 | |||
1995 | <+=?|> endRow = row;+=?|> |
||
1996 | <+=?|> }+=?|> |
||
1997 | |||
1998 | <+=?|> if (endRow > startRow) {+=?|> |
||
1999 | <+=?|> var endColumn = session.getLine(endRow).length;+=?|> |
||
2000 | <+=?|> return new Range(startRow, startColumn, endRow, endColumn);+=?|> |
||
2001 | <+=?|> }+=?|> |
||
2002 | <+=?|> };+=?|> |
||
2003 | <+=?|> this.getFoldWidget = function(session, foldStyle, row) {+=?|> |
||
2004 | <+=?|> var line = session.getLine(row);+=?|> |
||
2005 | <+=?|> var indent = line.search(/\S/);+=?|> |
||
2006 | <+=?|> var next = session.getLine(row + 1);+=?|> |
||
2007 | <+=?|> var prev = session.getLine(row - 1);+=?|> |
||
2008 | <+=?|> var prevIndent = prev.search(/\S/);+=?|> |
||
2009 | <+=?|> var nextIndent = next.search(/\S/);+=?|> |
||
2010 | |||
2011 | <+=?|> if (indent == -1) {+=?|> |
||
2012 | <+=?|> session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";+=?|> |
||
2013 | <+=?|> return "";+=?|> |
||
2014 | <+=?|> }+=?|> |
||
2015 | <+=?|> if (prevIndent == -1) {+=?|> |
||
2016 | <+=?|> if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {+=?|> |
||
2017 | <+=?|> session.foldWidgets[row - 1] = "";+=?|> |
||
2018 | <+=?|> session.foldWidgets[row + 1] = "";+=?|> |
||
2019 | <+=?|> return "start";+=?|> |
||
2020 | <+=?|> }+=?|> |
||
2021 | <+=?|> } else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {+=?|> |
||
2022 | <+=?|> if (session.getLine(row - 2).search(/\S/) == -1) {+=?|> |
||
2023 | <+=?|> session.foldWidgets[row - 1] = "start";+=?|> |
||
2024 | <+=?|> session.foldWidgets[row + 1] = "";+=?|> |
||
2025 | <+=?|> return "";+=?|> |
||
2026 | <+=?|> }+=?|> |
||
2027 | <+=?|> }+=?|> |
||
2028 | |||
2029 | <+=?|> if (prevIndent!= -1 && prevIndent < indent)+=?|> |
||
2030 | <+=?|> session.foldWidgets[row - 1] = "start";+=?|> |
||
2031 | <+=?|> else+=?|> |
||
2032 | <+=?|> session.foldWidgets[row - 1] = "";+=?|> |
||
2033 | |||
2034 | <+=?|> if (indent < nextIndent)+=?|> |
||
2035 | <+=?|> return "start";+=?|> |
||
2036 | <+=?|> else+=?|> |
||
2037 | <+=?|> return "";+=?|> |
||
2038 | <+=?|> };+=?|> |
||
2039 | |||
2040 | <+=?|>}).call(FoldMode.prototype);+=?|> |
||
2041 | |||
2042 | <+=?|>});+=?|> |
||
2043 | |||
2044 | <+=?|>ace.define("ace/mode/jade",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/jade_highlight_rules","ace/mode/folding/coffee"], function(require, exports, module) {+=?|> |
||
2045 | <+=?|>"use strict";+=?|> |
||
2046 | |||
2047 | <+=?|>var oop = require("../lib/oop");+=?|> |
||
2048 | <+=?|>var TextMode = require("./text").Mode;+=?|> |
||
2049 | <+=?|>var JadeHighlightRules = require("./jade_highlight_rules").JadeHighlightRules;+=?|> |
||
2050 | <+=?|>var FoldMode = require("./folding/coffee").FoldMode;+=?|> |
||
2051 | |||
2052 | <+=?|>var Mode = function() {+=?|> |
||
2053 | <+=?|> this.HighlightRules = JadeHighlightRules;+=?|> |
||
2054 | <+=?|> this.foldingRules = new FoldMode();+=?|> |
||
2055 | <+=?|> this.$behaviour = this.$defaultBehaviour;+=?|> |
||
2056 | <+=?|>};+=?|> |
||
2057 | <+=?|>oop.inherits(Mode, TextMode);+=?|> |
||
2058 | |||
2059 | <+=?|>(function() { +=?|> |
||
2060 | <+=?|> this.lineCommentStart = "//";+=?|> |
||
2061 | <+=?|> this.$id = "ace/mode/jade";+=?|> |
||
2062 | <+=?|>}).call(Mode.prototype);+=?|> |
||
2063 | |||
2064 | <+=?|>exports.Mode = Mode;+=?|> |
||
2065 | <+=?|>});+=?|> |