d424588d01445a9c14ec1f5681eca0e6.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. 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";
  47. var oop = require("../lib/oop");
  48. var TextMode = require("./text").Mode;
  49. var PropertiesHighlightRules = require("./properties_highlight_rules").PropertiesHighlightRules;
  50. var Mode = function () {
  51. this.HighlightRules = PropertiesHighlightRules;
  52. this.$behaviour = this.$defaultBehaviour;
  53. };
  54. oop.inherits(Mode, TextMode);
  55. (function () {
  56. this.$id = "ace/mode/properties";
  57. }).call(Mode.prototype);
  58. exports.Mode = Mode;
  59. }); (function() {
  60. ace.require(["ace/mode/properties"], function(m) {
  61. if (typeof module == "object" && typeof exports == "object" && module) {
  62. module.exports = m;
  63. }
  64. });
  65. })();