vendor/assets/javascripts/codemirror/modes/haml.js in codemirror-rails-3.24 vs vendor/assets/javascripts/codemirror/modes/haml.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"), require("../htmlmixed/htmlmixed"), require("../ruby/ruby")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../ruby/ruby"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + (function() { "use strict"; // full haml mode. This handled embeded ruby and html fragments too CodeMirror.defineMode("haml", function(config) { @@ -145,5 +155,7 @@ }; }, "htmlmixed", "ruby"); CodeMirror.defineMIME("text/x-haml", "haml"); })(); + +});