aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/syntastic/syntax_checkers/less/less-lint.js
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
commit9931e0888b2419326ae10ebbfae532261c5c125f (patch)
tree7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/syntastic/syntax_checkers/less/less-lint.js
parente573b3020c032400eed60b649a2cbf55266e6bb0 (diff)
downloadmyconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip
Fix submodules
Diffstat (limited to 'vim/bundle/syntastic/syntax_checkers/less/less-lint.js')
m---------vim/bundle/syntastic0
-rw-r--r--vim/bundle/syntastic/syntax_checkers/less/less-lint.js57
2 files changed, 0 insertions, 57 deletions
diff --git a/vim/bundle/syntastic b/vim/bundle/syntastic
new file mode 160000
+Subproject cee74e0c1af934065fd1b3046e53cda76574f70
diff --git a/vim/bundle/syntastic/syntax_checkers/less/less-lint.js b/vim/bundle/syntastic/syntax_checkers/less/less-lint.js
deleted file mode 100644
index 5abc653..0000000
--- a/vim/bundle/syntastic/syntax_checkers/less/less-lint.js
+++ /dev/null
@@ -1,57 +0,0 @@
-// Generated by CoffeeScript 1.3.3
-(function() {
- var args, fs, less, options, parser;
-
- fs = require('fs');
-
- less = require('less');
-
- args = process.argv.slice(1);
-
- options = {};
-
- args = args.filter(function(arg) {
- var match;
- match = arg.match(/^-I(.+)$/);
- if (match) {
- options.paths.push(match[1]);
- return false;
- }
- match = arg.match(/^--?([a-z][\-0-9a-z]*)(?:=([^\s]+))?$/i);
- if (match) {
- arg = match[1];
- } else {
- return arg;
- }
- switch (arg) {
- case 'strict-imports':
- return options.strictImports = true;
- case 'include-path':
- return options.paths = match[2].split(os.type().match(/Windows/) ? ';' : ':').map(function(p) {
- if (p) {
- return path.resolve(process.cwd(), p);
- }
- });
- case 'O0':
- return options.optimization = 0;
- case 'O1':
- return options.optimization = 1;
- case 'O2':
- return options.optimization = 2;
- }
- });
-
- options.filename = args[1];
-
- parser = new less.Parser(options);
-
- fs.readFile(options.filename, 'utf-8', function(err, data) {
- return parser.parse(data, function(err, tree) {
- if (err) {
- less.writeError(err);
- return process.exit(1);
- }
- });
- });
-
-}).call(this);