| 1 | ace.define("ace/mode/properties_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict"; |
| 2 | var oop = require("../lib/oop"); |
| 3 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; |
| 4 | var PropertiesHighlightRules = function () { |
| 5 | var escapeRe = /\\u[0-9a-fA-F]{4}|\\/; |
| 6 | this.$rules = { |
| 7 | "start": [ |
| 8 | { |
| 9 | token: "comment", |
| 10 | regex: /[!#].*$/ |
| 11 | }, { |
| 12 | token: "keyword", |
| 13 | regex: /[=:]$/ |
| 14 | }, { |
| 15 | token: "keyword", |
| 16 | regex: /[=:]/, |
| 17 | next: "value" |
| 18 | }, { |
| 19 | token: "constant.language.escape", |
| 20 | regex: escapeRe |
| 21 | }, { |
| 22 | defaultToken: "variable" |
| 23 | } |
| 24 | ], |
| 25 | "value": [ |
| 26 | { |
| 27 | regex: /\\$/, |
| 28 | token: "string", |
| 29 | next: "value" |
| 30 | }, { |
| 31 | regex: /$/, |
| 32 | token: "string", |
| 33 | next: "start" |
| 34 | }, { |
| 35 | token: "constant.language.escape", |
| 36 | regex: escapeRe |
| 37 | }, { |
| 38 | defaultToken: "string" |
| 39 | } |
| 40 | ] |
| 41 | }; |
| 42 | }; |
| 43 | oop.inherits(PropertiesHighlightRules, TextHighlightRules); |
| 44 | exports.PropertiesHighlightRules = PropertiesHighlightRules; |
| 45 | |
| 46 | }); |
| 47 | |
| 48 | ace.define("ace/mode/properties",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/properties_highlight_rules"], function(require, exports, module){"use strict"; |
| 49 | var oop = require("../lib/oop"); |
| 50 | var TextMode = require("./text").Mode; |
| 51 | var PropertiesHighlightRules = require("./properties_highlight_rules").PropertiesHighlightRules; |
| 52 | var Mode = function () { |
| 53 | this.HighlightRules = PropertiesHighlightRules; |
| 54 | this.$behaviour = this.$defaultBehaviour; |
| 55 | }; |
| 56 | oop.inherits(Mode, TextMode); |
| 57 | (function () { |
| 58 | this.$id = "ace/mode/properties"; |
| 59 | }).call(Mode.prototype); |
| 60 | exports.Mode = Mode; |
| 61 | |
| 62 | }); (function() { |
| 63 | ace.require(["ace/mode/properties"], function(m) { |
| 64 | if (typeof module == "object" && typeof exports == "object" && module) { |
| 65 | module.exports = m; |
| 66 | } |
| 67 | }); |
| 68 | })(); |
| 69 |