From 9931e0888b2419326ae10ebbfae532261c5c125f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:11:56 +0200 Subject: Fix submodules --- vim/bundle/syntastic | 1 + .../syntax_checkers/less/less-lint.coffee | 41 ---------------------- 2 files changed, 1 insertion(+), 41 deletions(-) create mode 160000 vim/bundle/syntastic delete mode 100644 vim/bundle/syntastic/syntax_checkers/less/less-lint.coffee (limited to 'vim/bundle/syntastic/syntax_checkers/less/less-lint.coffee') diff --git a/vim/bundle/syntastic b/vim/bundle/syntastic new file mode 160000 index 0000000..cee74e0 --- /dev/null +++ b/vim/bundle/syntastic @@ -0,0 +1 @@ +Subproject commit cee74e0c1af934065fd1b3046e53cda76574f703 diff --git a/vim/bundle/syntastic/syntax_checkers/less/less-lint.coffee b/vim/bundle/syntastic/syntax_checkers/less/less-lint.coffee deleted file mode 100644 index 0b05e4a..0000000 --- a/vim/bundle/syntastic/syntax_checkers/less/less-lint.coffee +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env node - -fs = require 'fs' -less = require 'less' -args = process.argv.slice(1) -options = {} - -args = args.filter (arg) -> - 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 - when 'strict-imports' then options.strictImports = true - when 'include-path' - options.paths = match[2].split(if os.type().match(/Windows/) then ';' else ':') - .map (p) -> - if p - return path.resolve(process.cwd(), p) - when 'O0' then options.optimization = 0 - when 'O1' then options.optimization = 1 - when 'O2' then options.optimization = 2 - -options.filename = args[1] - -parser = new(less.Parser) options - -fs.readFile(options.filename, 'utf-8', (err,data) -> - parser.parse(data, (err, tree) -> - if err - less.writeError err - process.exit(1) - ) -) -- cgit v1.2.3