提交 5e207a1d 编写于 作者: M Martin Aeschlimann

[json] word pattern to match full string and number literals

上级 da7264c5
......@@ -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+/
});
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册