mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
[json] word pattern to match full string and number literals
This commit is contained in:
@@ -89,7 +89,7 @@ export function activate(context: ExtensionContext) {
|
||||
context.subscriptions.push(disposable);
|
||||
|
||||
languages.setLanguageConfiguration('json', {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g
|
||||
wordPattern: /("(?:[^\\\"]*(?:\\.)?)*"?)|(-?\d+\.?\d*([eE][+-]?\d*)?)|-|\w+/
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user