mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
19 lines
787 B
JavaScript
19 lines
787 B
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* 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 = 'OmniSharp/omnisharp-vscode';
|
|
const grammarPath = 'src/razor/syntaxes/aspnetcorerazor.tmLanguage.json';
|
|
vscodeGrammarUpdater.update(razorGrammarRepo, grammarPath, './syntaxes/cshtml.tmLanguage.json', grammar => patchGrammar(grammar));
|
|
|
|
|