123456789101112131415161718 |
- /*---------------------------------------------------------------------------------------------
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
- *--------------------------------------------------------------------------------------------*/
- // @ts-check
- import * as vscodeGrammarUpdater from 'vscode-grammar-updater';
- function patchGrammar(grammar) {
- grammar.scopeName = 'text.html.cshtml';
- return grammar;
- }
- const razorGrammarRepo = 'dotnet/razor';
- const grammarPath = 'src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json';
- vscodeGrammarUpdater.update(razorGrammarRepo, grammarPath, './syntaxes/cshtml.tmLanguage.json', grammar => patchGrammar(grammar), 'main');
|