!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(f){"use strict";f.registerHelper("lint","coffeescript",function(e){var o=[];if(!window.coffeelint)return window.console&&window.console.error("Error: window.coffeelint not defined, CodeMirror CoffeeScript linting cannot run."),o;var r,i;try{for(var n=coffeelint.lint(e),t=0;t<n.length;t++)r=n[t],void 0,i=r.lineNumber,o.push({from:f.Pos(i-1,0),to:f.Pos(i,0),severity:r.level,message:r.message})}catch(e){o.push({from:f.Pos(e.location.first_line,0),to:f.Pos(e.location.last_line,e.location.last_column),severity:"error",message:e.message})}return o})});