wide/static/js/lint/go-lint.js

17 lines
336 B
JavaScript

(function(mod) {
mod(CodeMirror);
})(function(CodeMirror) {
"use strict";
CodeMirror.registerHelper("lint", "go", function(text) {
var found = [];
found.push({from: CodeMirror.Pos(1, 1),
to: CodeMirror.Pos(1, 10),
message: "test commpile err"});
return found;
});
});