corrade-nucleus-nucleons – Blame information for rev 20
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) { |
2 | "use strict"; |
||
3 | |||
4 | var oop = require("../lib/oop"); |
||
5 | var lang = require("../lib/lang"); |
||
6 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; |
||
7 | var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index"; |
||
8 | var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters"; |
||
9 | var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero"; |
||
10 | var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow"; |
||
11 | var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace"; |
||
12 | |||
13 | var numRe = exports.numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))"; |
||
14 | var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b"; |
||
15 | var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b"; |
||
16 | |||
17 | var CssHighlightRules = function() { |
||
18 | |||
19 | var keywordMapper = this.createKeywordMapper({ |
||
20 | "support.function": supportFunction, |
||
21 | "support.constant": supportConstant, |
||
22 | "support.type": supportType, |
||
23 | "support.constant.color": supportConstantColor, |
||
24 | "support.constant.fonts": supportConstantFonts |
||
25 | }, "text", true); |
||
26 | |||
27 | this.$rules = { |
||
28 | "start" : [{ |
||
29 | token : "comment", // multi line comment |
||
30 | regex : "\\/\\*", |
||
31 | push : "comment" |
||
32 | }, { |
||
33 | token: "paren.lparen", |
||
34 | regex: "\\{", |
||
35 | push: "ruleset" |
||
36 | }, { |
||
37 | token: "string", |
||
38 | regex: "@.*?{", |
||
39 | push: "media" |
||
40 | }, { |
||
41 | token: "keyword", |
||
42 | regex: "#[a-z0-9-_]+" |
||
43 | }, { |
||
44 | token: "variable", |
||
45 | regex: "\\.[a-z0-9-_]+" |
||
46 | }, { |
||
47 | token: "string", |
||
48 | regex: ":[a-z0-9-_]+" |
||
49 | }, { |
||
50 | token: "constant", |
||
51 | regex: "[a-z0-9-_]+" |
||
52 | }, { |
||
53 | caseInsensitive: true |
||
54 | }], |
||
55 | |||
56 | "media" : [{ |
||
57 | token : "comment", // multi line comment |
||
58 | regex : "\\/\\*", |
||
59 | push : "comment" |
||
60 | }, { |
||
61 | token: "paren.lparen", |
||
62 | regex: "\\{", |
||
63 | push: "ruleset" |
||
64 | }, { |
||
65 | token: "string", |
||
66 | regex: "\\}", |
||
67 | next: "pop" |
||
68 | }, { |
||
69 | token: "keyword", |
||
70 | regex: "#[a-z0-9-_]+" |
||
71 | }, { |
||
72 | token: "variable", |
||
73 | regex: "\\.[a-z0-9-_]+" |
||
74 | }, { |
||
75 | token: "string", |
||
76 | regex: ":[a-z0-9-_]+" |
||
77 | }, { |
||
78 | token: "constant", |
||
79 | regex: "[a-z0-9-_]+" |
||
80 | }, { |
||
81 | caseInsensitive: true |
||
82 | }], |
||
83 | |||
84 | "comment" : [{ |
||
85 | token : "comment", |
||
86 | regex : "\\*\\/", |
||
87 | next : "pop" |
||
88 | }, { |
||
89 | defaultToken : "comment" |
||
90 | }], |
||
91 | |||
92 | "ruleset" : [ |
||
93 | { |
||
94 | token : "paren.rparen", |
||
95 | regex : "\\}", |
||
96 | next: "pop" |
||
97 | }, { |
||
98 | token : "comment", // multi line comment |
||
99 | regex : "\\/\\*", |
||
100 | push : "comment" |
||
101 | }, { |
||
102 | token : "string", // single line |
||
103 | regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' |
||
104 | }, { |
||
105 | token : "string", // single line |
||
106 | regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" |
||
107 | }, { |
||
108 | token : ["constant.numeric", "keyword"], |
||
109 | regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)" |
||
110 | }, { |
||
111 | token : "constant.numeric", |
||
112 | regex : numRe |
||
113 | }, { |
||
114 | token : "constant.numeric", // hex6 color |
||
115 | regex : "#[a-f0-9]{6}" |
||
116 | }, { |
||
117 | token : "constant.numeric", // hex3 color |
||
118 | regex : "#[a-f0-9]{3}" |
||
119 | }, { |
||
120 | token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"], |
||
121 | regex : pseudoElements |
||
122 | }, { |
||
123 | token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"], |
||
124 | regex : pseudoClasses |
||
125 | }, { |
||
126 | token : ["support.function", "string", "support.function"], |
||
127 | regex : "(url\\()(.*)(\\))" |
||
128 | }, { |
||
129 | token : keywordMapper, |
||
130 | regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*" |
||
131 | }, { |
||
132 | caseInsensitive: true |
||
133 | }] |
||
134 | }; |
||
135 | |||
136 | this.normalizeRules(); |
||
137 | }; |
||
138 | |||
139 | oop.inherits(CssHighlightRules, TextHighlightRules); |
||
140 | |||
141 | exports.CssHighlightRules = CssHighlightRules; |
||
142 | |||
143 | }); |
||
144 | |||
145 | define("ace/mode/stylus_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module) { |
||
146 | "use strict"; |
||
147 | |||
148 | var oop = require("../lib/oop"); |
||
149 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; |
||
150 | var CssHighlightRules = require("./css_highlight_rules"); |
||
151 | |||
152 | var StylusHighlightRules = function() { |
||
153 | |||
154 | var keywordMapper = this.createKeywordMapper({ |
||
155 | "support.type": CssHighlightRules.supportType, |
||
156 | "support.function": CssHighlightRules.supportFunction, |
||
157 | "support.constant": CssHighlightRules.supportConstant, |
||
158 | "support.constant.color": CssHighlightRules.supportConstantColor, |
||
159 | "support.constant.fonts": CssHighlightRules.supportConstantFonts |
||
160 | }, "text", true); |
||
161 | |||
162 | this.$rules = { |
||
163 | start: [ |
||
164 | { |
||
165 | token : "comment", |
||
166 | regex : /\/\/.*$/ |
||
167 | }, |
||
168 | { |
||
169 | token : "comment", // multi line comment |
||
170 | regex : /\/\*/, |
||
171 | next : "comment" |
||
172 | }, |
||
173 | { |
||
174 | token: ["entity.name.function.stylus", "text"], |
||
175 | regex: "^([-a-zA-Z_][-\\w]*)?(\\()" |
||
176 | }, |
||
177 | { |
||
178 | token: ["entity.other.attribute-name.class.stylus"], |
||
179 | regex: "\\.-?[_a-zA-Z]+[_a-zA-Z0-9-]*" |
||
180 | }, |
||
181 | { |
||
182 | token: ["entity.language.stylus"], |
||
183 | regex: "^ *&" |
||
184 | }, |
||
185 | { |
||
186 | token: ["variable.language.stylus"], |
||
187 | regex: "(arguments)" |
||
188 | }, |
||
189 | { |
||
190 | token: ["keyword.stylus"], |
||
191 | regex: "@[-\\w]+" |
||
192 | }, |
||
193 | { |
||
194 | token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"], |
||
195 | regex : CssHighlightRules.pseudoElements |
||
196 | }, { |
||
197 | token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"], |
||
198 | regex : CssHighlightRules.pseudoClasses |
||
199 | }, |
||
200 | { |
||
201 | token: ["entity.name.tag.stylus"], |
||
202 | regex: "(?:\\b)(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(?:h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)(?:\\b)" |
||
203 | }, |
||
204 | { |
||
205 | token : "constant.numeric", // hex6 color |
||
206 | regex : "#[a-f0-9]{6}" |
||
207 | }, |
||
208 | { |
||
209 | token : "constant.numeric", // hex3 color |
||
210 | regex : "#[a-f0-9]{3}" |
||
211 | }, |
||
212 | { |
||
213 | token: ["punctuation.definition.entity.stylus", "entity.other.attribute-name.id.stylus"], |
||
214 | regex: "(#)([a-zA-Z][a-zA-Z0-9_-]*)" |
||
215 | }, |
||
216 | { |
||
217 | token: "meta.vendor-prefix.stylus", |
||
218 | regex: "-webkit-|-moz\\-|-ms-|-o-" |
||
219 | }, |
||
220 | { |
||
221 | token: "keyword.control.stylus", |
||
222 | regex: "(?:!important|for|in|return|true|false|null|if|else|unless|return)\\b" |
||
223 | }, |
||
224 | { |
||
225 | token: "keyword.operator.stylus", |
||
226 | regex: "!|~|\\+|-|(?:\\*)?\\*|\\/|%|(?:\\.)\\.\\.|<|>|(?:=|:|\\?|\\+|-|\\*|\\/|%|<|>)?=|!=" |
||
227 | }, |
||
228 | { |
||
229 | token: "keyword.operator.stylus", |
||
230 | regex: "(?:in|is(?:nt)?|not)\\b" |
||
231 | }, |
||
232 | { |
||
233 | token : "string", |
||
234 | regex : "'(?=.)", |
||
235 | next : "qstring" |
||
236 | }, { |
||
237 | token : "string", |
||
238 | regex : '"(?=.)', |
||
239 | next : "qqstring" |
||
240 | }, |
||
241 | { |
||
242 | token : "constant.numeric", |
||
243 | regex : CssHighlightRules.numRe |
||
244 | }, |
||
245 | { |
||
246 | token : "keyword", |
||
247 | regex : "(?:ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)\\b" |
||
248 | }, |
||
249 | { |
||
250 | token : keywordMapper, |
||
251 | regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*" |
||
252 | } |
||
253 | ], |
||
254 | "comment" : [ |
||
255 | { |
||
256 | token : "comment", // closing comment |
||
257 | regex : ".*?\\*\\/", |
||
258 | next : "start" |
||
259 | }, { |
||
260 | token : "comment", // comment spanning whole line |
||
261 | regex : ".+" |
||
262 | } |
||
263 | ], |
||
264 | "qqstring" : [ |
||
265 | { |
||
266 | token : "string", |
||
267 | regex : '[^"\\\\]+' |
||
268 | }, |
||
269 | { |
||
270 | token : "string", |
||
271 | regex : "\\\\$", |
||
272 | next : "qqstring" |
||
273 | }, |
||
274 | { |
||
275 | token : "string", |
||
276 | regex : '"|$', |
||
277 | next : "start" |
||
278 | } |
||
279 | ], |
||
280 | "qstring" : [ |
||
281 | { |
||
282 | token : "string", |
||
283 | regex : "[^'\\\\]+" |
||
284 | }, |
||
285 | { |
||
286 | token : "string", |
||
287 | regex : "\\\\$", |
||
288 | next : "qstring" |
||
289 | }, |
||
290 | { |
||
291 | token : "string", |
||
292 | regex : "'|$", |
||
293 | next : "start" |
||
294 | } |
||
295 | ] |
||
296 | } |
||
297 | |||
298 | }; |
||
299 | |||
300 | oop.inherits(StylusHighlightRules, TextHighlightRules); |
||
301 | |||
302 | exports.StylusHighlightRules = StylusHighlightRules; |
||
303 | }); |
||
304 | |||
305 | define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) { |
||
306 | "use strict"; |
||
307 | |||
308 | var oop = require("../../lib/oop"); |
||
309 | var BaseFoldMode = require("./fold_mode").FoldMode; |
||
310 | var Range = require("../../range").Range; |
||
311 | |||
312 | var FoldMode = exports.FoldMode = function() {}; |
||
313 | oop.inherits(FoldMode, BaseFoldMode); |
||
314 | |||
315 | (function() { |
||
316 | |||
317 | this.getFoldWidgetRange = function(session, foldStyle, row) { |
||
318 | var range = this.indentationBlock(session, row); |
||
319 | if (range) |
||
320 | return range; |
||
321 | |||
322 | var re = /\S/; |
||
323 | var line = session.getLine(row); |
||
324 | var startLevel = line.search(re); |
||
325 | if (startLevel == -1 || line[startLevel] != "#") |
||
326 | return; |
||
327 | |||
328 | var startColumn = line.length; |
||
329 | var maxRow = session.getLength(); |
||
330 | var startRow = row; |
||
331 | var endRow = row; |
||
332 | |||
333 | while (++row < maxRow) { |
||
334 | line = session.getLine(row); |
||
335 | var level = line.search(re); |
||
336 | |||
337 | if (level == -1) |
||
338 | continue; |
||
339 | |||
340 | if (line[level] != "#") |
||
341 | break; |
||
342 | |||
343 | endRow = row; |
||
344 | } |
||
345 | |||
346 | if (endRow > startRow) { |
||
347 | var endColumn = session.getLine(endRow).length; |
||
348 | return new Range(startRow, startColumn, endRow, endColumn); |
||
349 | } |
||
350 | }; |
||
351 | this.getFoldWidget = function(session, foldStyle, row) { |
||
352 | var line = session.getLine(row); |
||
353 | var indent = line.search(/\S/); |
||
354 | var next = session.getLine(row + 1); |
||
355 | var prev = session.getLine(row - 1); |
||
356 | var prevIndent = prev.search(/\S/); |
||
357 | var nextIndent = next.search(/\S/); |
||
358 | |||
359 | if (indent == -1) { |
||
360 | session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : ""; |
||
361 | return ""; |
||
362 | } |
||
363 | if (prevIndent == -1) { |
||
364 | if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") { |
||
365 | session.foldWidgets[row - 1] = ""; |
||
366 | session.foldWidgets[row + 1] = ""; |
||
367 | return "start"; |
||
368 | } |
||
369 | } else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") { |
||
370 | if (session.getLine(row - 2).search(/\S/) == -1) { |
||
371 | session.foldWidgets[row - 1] = "start"; |
||
372 | session.foldWidgets[row + 1] = ""; |
||
373 | return ""; |
||
374 | } |
||
375 | } |
||
376 | |||
377 | if (prevIndent!= -1 && prevIndent < indent) |
||
378 | session.foldWidgets[row - 1] = "start"; |
||
379 | else |
||
380 | session.foldWidgets[row - 1] = ""; |
||
381 | |||
382 | if (indent < nextIndent) |
||
383 | return "start"; |
||
384 | else |
||
385 | return ""; |
||
386 | }; |
||
387 | |||
388 | }).call(FoldMode.prototype); |
||
389 | |||
390 | }); |
||
391 | |||
392 | define("ace/mode/stylus",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/stylus_highlight_rules","ace/mode/folding/coffee"], function(require, exports, module) { |
||
393 | "use strict"; |
||
394 | |||
395 | var oop = require("../lib/oop"); |
||
396 | var TextMode = require("./text").Mode; |
||
397 | var StylusHighlightRules = require("./stylus_highlight_rules").StylusHighlightRules; |
||
398 | var FoldMode = require("./folding/coffee").FoldMode; |
||
399 | |||
400 | var Mode = function() { |
||
401 | this.HighlightRules = StylusHighlightRules; |
||
402 | this.foldingRules = new FoldMode(); |
||
403 | this.$behaviour = this.$defaultBehaviour; |
||
404 | }; |
||
405 | oop.inherits(Mode, TextMode); |
||
406 | |||
407 | (function() { |
||
408 | this.lineCommentStart = "//"; |
||
409 | this.blockComment = {start: "/*", end: "*/"}; |
||
410 | |||
411 | this.$id = "ace/mode/stylus"; |
||
412 | }).call(Mode.prototype); |
||
413 | |||
414 | exports.Mode = Mode; |
||
415 | }); |