vendor/assets/javascripts/codemirror/modes/rust.js in codemirror-rails-3.24 vs vendor/assets/javascripts/codemirror/modes/rust.js in codemirror-rails-4.0

- old
+ new

@@ -1,5 +1,15 @@ +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + CodeMirror.defineMode("rust", function() { var indentUnit = 4, altIndentUnit = 2; var valKeywords = { "if": "if-style", "while": "if-style", "else": "else-style", "do": "else-style", "ret": "else-style", "fail": "else-style", @@ -432,5 +442,7 @@ fold: "brace" }; }); CodeMirror.defineMIME("text/x-rustsrc", "rust"); + +});