var MangoHighlightRules = function()

in app/addons/components/components/ace-mode-mango.js [26:99]


  var MangoHighlightRules = function () {
    this.$rules = {
      "start": [
        {
          //token: "variable",
          token: function(value) {
            if (operators.includes(value.substr(1, value.length - 2))) {
              return "keyword.operator";
            } else if (options.includes(value.substr(1, value.length - 2))) {
              return "keyword.operator";
            }
            return "variable";
          },
          regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'
        }, {
          token: "string",
          regex: '"',
          next: "string"
        }, {
          token: "constant.numeric",
          regex: "0[xX][0-9a-fA-F]+\\b"
        }, {
          token: "constant.numeric",
          regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
        }, {
          token: "constant.language.boolean",
          regex: "(?:true|false)\\b"
        }, {
          token: "text",
          regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
        }, {
          token: "comment",
          regex: "\\/\\/.*$"
        }, {
          token: "comment.start",
          regex: "\\/\\*",
          next: "comment"
        }, {
          token: "paren.lparen",
          regex: "[[({]"
        }, {
          token: "paren.rparen",
          regex: "[\\])}]"
        }, {
          token: "punctuation.operator",
          regex: /[,]/
        }, {
          token: "text",
          regex: "\\s+"
        }
      ],
      "string": [
        {
          token: "constant.language.escape",
          regex: /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/
        }, {
          token: "string",
          regex: '"|$',
          next: "start"
        }, {
          defaultToken: "string"
        }
      ],
      "comment": [
        {
          token: "comment.end",
          regex: "\\*\\/",
          next: "start"
        }, {
          defaultToken: "comment"
        }
      ]
    };
  };