Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/media/editors/codemirror/addon/lint/ |
| [Home] [System Details] [Kill Me] |
!(function(a){"object"==typeof
exports&&"object"==typeof
module?a(require("../../lib/codemirror")):"function"==typeof
define&&define.amd?define(["../../lib/codemirror"],a):a(CodeMirror)})((function(a){"use
strict";a.registerHelper("lint","coffeescript",(function(b){var
c=[];if(!window.coffeelint)return
window.console&&window.console.error("Error: window.coffeelint
not defined, CodeMirror CoffeeScript linting cannot
run."),c;try{for(var
d=coffeelint.lint(b),e=0;e<d.length;e++)!(function(b){var
d=b.lineNumber;c.push({from:a.Pos(d-1,0),to:a.Pos(d,0),severity:b.level,message:b.message})})(d[e])}catch(b){c.push({from:a.Pos(b.location.first_line,0),to:a.Pos(b.location.last_line,b.location.last_column),severity:"error",message:b.message})}return
c}))}));