corrade-nucleus-nucleons – Blame information for rev 20
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | define("ace/mode/properties_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 PropertiesHighlightRules = function() { |
||
8 | |||
9 | var escapeRe = /\\u[0-9a-fA-F]{4}|\\/; |
||
10 | |||
11 | this.$rules = { |
||
12 | "start" : [ |
||
13 | { |
||
14 | token : "comment", |
||
15 | regex : /[!#].*$/ |
||
16 | }, { |
||
17 | token : "keyword", |
||
18 | regex : /[=:]$/ |
||
19 | }, { |
||
20 | token : "keyword", |
||
21 | regex : /[=:]/, |
||
22 | next : "value" |
||
23 | }, { |
||
24 | token : "constant.language.escape", |
||
25 | regex : escapeRe |
||
26 | }, { |
||
27 | defaultToken: "variable" |
||
28 | } |
||
29 | ], |
||
30 | "value" : [ |
||
31 | { |
||
32 | regex : /\\$/, |
||
33 | token : "string", |
||
34 | next : "value" |
||
35 | }, { |
||
36 | regex : /$/, |
||
37 | token : "string", |
||
38 | next : "start" |
||
39 | }, { |
||
40 | token : "constant.language.escape", |
||
41 | regex : escapeRe |
||
42 | }, { |
||
43 | defaultToken: "string" |
||
44 | } |
||
45 | ] |
||
46 | }; |
||
47 | |||
48 | }; |
||
49 | |||
50 | oop.inherits(PropertiesHighlightRules, TextHighlightRules); |
||
51 | |||
52 | exports.PropertiesHighlightRules = PropertiesHighlightRules; |
||
53 | }); |
||
54 | |||
55 | define("ace/mode/properties",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/properties_highlight_rules"], function(require, exports, module) { |
||
56 | "use strict"; |
||
57 | |||
58 | var oop = require("../lib/oop"); |
||
59 | var TextMode = require("./text").Mode; |
||
60 | var PropertiesHighlightRules = require("./properties_highlight_rules").PropertiesHighlightRules; |
||
61 | |||
62 | var Mode = function() { |
||
63 | this.HighlightRules = PropertiesHighlightRules; |
||
64 | this.$behaviour = this.$defaultBehaviour; |
||
65 | }; |
||
66 | oop.inherits(Mode, TextMode); |
||
67 | |||
68 | (function() { |
||
69 | this.$id = "ace/mode/properties"; |
||
70 | }).call(Mode.prototype); |
||
71 | |||
72 | exports.Mode = Mode; |
||
73 | }); |