[cpp] add grammar update script

This commit is contained in:
Martin Aeschlimann 2016-08-09 11:42:03 +02:00
parent d266e96598
commit b89e129aa2
2 changed files with 6 additions and 1 deletions

View file

@ -67,7 +67,9 @@ exports.update = function (repoId, repoPath, dest, modifyGrammar) {
}, console.error);
}
if (path.basename(process.argv[1]) === 'update-grammar.js') {
exports.update(process.argv[2], process.argv[3], process.argv[4]);
for (var i = 3; i < process.argv.length; i+=2) {
exports.update(process.argv[2], process.argv[i], process.argv[i+1]);
}
}

View file

@ -3,6 +3,9 @@
"version": "0.1.0",
"publisher": "vscode",
"engines": { "vscode": "*" },
"scripts": {
"update-grammar": "node ../../build/npm/update-grammar.js atom/language-c grammars/c.cson ./syntaxes/c.json grammars/c%2B%2B.cson ./syntaxes/c++.json"
},
"contributes": {
"languages": [{
"id": "c",