PluginProbe ʕ •ᴥ•ʔ
SiteOrigin CSS / 1.4.1
SiteOrigin CSS v1.4.1
1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.10 1.5.11 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0
so-css / lib / codemirror / addon / lint / yaml-lint.js
so-css / lib / codemirror / addon / lint Last commit date
coffeescript-lint.js 11 years ago coffeescript-lint.min.js 6 years ago css-lint.js 9 years ago css-lint.min.js 6 years ago html-lint.js 10 years ago html-lint.min.js 6 years ago javascript-lint.js 11 years ago javascript-lint.min.js 6 years ago json-lint.js 11 years ago json-lint.min.js 6 years ago lint.css 9 years ago lint.js 9 years ago lint.min.js 6 years ago yaml-lint.js 9 years ago yaml-lint.min.js 6 years ago
yaml-lint.js
36 lines
1 // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 // Distributed under an MIT license: http://codemirror.net/LICENSE
3
4 (function(mod) {
5 if (typeof exports == "object" && typeof module == "object") // CommonJS
6 mod(require("../../lib/codemirror"));
7 else if (typeof define == "function" && define.amd) // AMD
8 define(["../../lib/codemirror"], mod);
9 else // Plain browser env
10 mod(CodeMirror);
11 })(function(CodeMirror) {
12 "use strict";
13
14 // Depends on js-yaml.js from https://github.com/nodeca/js-yaml
15
16 // declare global: jsyaml
17
18 CodeMirror.registerHelper("lint", "yaml", function(text) {
19 var found = [];
20 try { jsyaml.load(text); }
21 catch(e) {
22 var loc = e.mark,
23 // js-yaml YAMLException doesn't always provide an accurate lineno
24 // e.g., when there are multiple yaml docs
25 // ---
26 // ---
27 // foo:bar
28 from = loc ? CodeMirror.Pos(loc.line, loc.column) : CodeMirror.Pos(0, 0),
29 to = from;
30 found.push({ from: from, to: to, message: e.message });
31 }
32 return found;
33 });
34
35 });
36