vendor/assets/javascripts/ace/mode-c9search.js in ace-rails-ap-4.1.5 vs vendor/assets/javascripts/ace/mode-c9search.js in ace-rails-ap-4.2

- old
+ new

@@ -62,11 +62,11 @@ onMatch: function(val, state, stack) { var parts = val.split("\x01"); if (parts.length < 3) return "text"; - var options, search, replace; + var options, search; var i = 0; var tokens = [{ value: parts[i++] + "'", type: "text" @@ -76,11 +76,10 @@ }, { value: "'" + parts[i++], type: "text" }]; if (parts[2] !== " in") { - replace = parts[i]; tokens.push({ value: "'" + parts[i++] + "'", type: "text" }, { value: parts[i++], @@ -282,6 +281,13 @@ this.$id = "ace/mode/c9search"; }).call(Mode.prototype); exports.Mode = Mode; -}); +}); (function() { + window.require(["ace/mode/c9search"], function(m) { + if (typeof module == "object" && typeof exports == "object" && module) { + module.exports = m; + } + }); + })(); + \ No newline at end of file