Update rust grammar to be pulled from main branch (#194787)

Discovered through https://github.com/microsoft/vscode/pull/194758
This commit is contained in:
Alex Ross
2023-10-04 12:46:43 +02:00
committed by GitHub
parent b6860e399a
commit 81f0e9825a
3 changed files with 11 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
/*---------------------------------------------------------------------------------------------
* 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';
vscodeGrammarUpdater.update('dustypomerleau/rust-syntax', 'syntaxes/rust.tmLanguage.json', './syntaxes/rust.tmLanguage.json', undefined, 'main');
+1 -1
View File
@@ -9,7 +9,7 @@
"vscode": "*"
},
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin dustypomerleau/rust-syntax syntaxes/rust.tmLanguage.json ./syntaxes/rust.tmLanguage.json"
"update-grammar": "node ./build/update-grammar.mjs"
},
"contributes": {
"languages": [
@@ -888,7 +888,7 @@
"patterns": [
{
"comment": "namespace (non-type, non-function path segment)",
"match": "(?<![A-Za-z0-9_])([a-z0-9_]+)((?<!super|self)::)",
"match": "(?<![A-Za-z0-9_])([A-Za-z0-9_]+)((?<!super|self)::)",
"captures": {
"1": {
"name": "entity.name.namespace.rust"