2021-01-25 16:07:56 +00:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
|
|
|
2021-02-02 11:30:08 +00:00
|
|
|
var updateGrammar = require('vscode-grammar-updater');
|
2021-01-25 16:07:56 +00:00
|
|
|
|
2022-06-10 13:55:11 +00:00
|
|
|
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');
|
2021-01-25 16:07:56 +00:00
|
|
|
|
2022-06-10 13:55:11 +00:00
|
|
|
await updateGrammar.update('NVIDIA/cuda-cpp-grammar', 'syntaxes/cuda-cpp.tmLanguage.json', './syntaxes/cuda-cpp.tmLanguage.json', undefined, 'master');
|
2021-03-30 09:18:48 +00:00
|
|
|
|
2021-01-25 16:07:56 +00:00
|
|
|
// `source.c.platform` which is still included by other grammars
|
2022-06-10 13:55:11 +00:00
|
|
|
await updateGrammar.update('textmate/c.tmbundle', 'Syntaxes/Platform.tmLanguage', './syntaxes/platform.tmLanguage.json');
|
|
|
|
}
|
|
|
|
|
|
|
|
updateGrammars();
|
2021-01-25 16:07:56 +00:00
|
|
|
|