Skip to content

Commit

Permalink
Freeze C++ grammar version
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 committed Aug 9, 2023
1 parent a3e2f15 commit eb03486
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions extensions/cpp/build/update-grammars.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ var updateGrammar = require('vscode-grammar-updater');

async function updateGrammars() {
await updateGrammar.update('jeff-hykin/better-c-syntax', 'autogenerated/c.tmLanguage.json', './syntaxes/c.tmLanguage.json', undefined, 'master');
await updateGrammar.update('jeff-hykin/better-cpp-syntax', 'autogenerated/cpp.tmLanguage.json', './syntaxes/cpp.tmLanguage.json', undefined, 'master');
await updateGrammar.update('jeff-hykin/better-cpp-syntax', 'autogenerated/cpp.embedded.macro.tmLanguage.json', './syntaxes/cpp.embedded.macro.tmLanguage.json', undefined, 'master');

// The license has changed for these two grammar. We have to freeze them as the new license is not compatible with our license.
// await updateGrammar.update('jeff-hykin/better-cpp-syntax', 'autogenerated/cpp.tmLanguage.json', './syntaxes/cpp.tmLanguage.json', undefined, 'master');
// await updateGrammar.update('jeff-hykin/better-cpp-syntax', 'autogenerated/cpp.embedded.macro.tmLanguage.json', './syntaxes/cpp.embedded.macro.tmLanguage.json', undefined, 'master');

await updateGrammar.update('NVIDIA/cuda-cpp-grammar', 'syntaxes/cuda-cpp.tmLanguage.json', './syntaxes/cuda-cpp.tmLanguage.json', undefined, 'master');

// `source.c.platform` which is still included by other grammars
// `source.c.platform` which is still included by other grammars
await updateGrammar.update('textmate/c.tmbundle', 'Syntaxes/Platform.tmLanguage', './syntaxes/platform.tmLanguage.json');
}

Expand Down

0 comments on commit eb03486

Please sign in to comment.