From 9a82ee0de25901447fc49a9337d7290c0e6f6532 Mon Sep 17 00:00:00 2001 From: veetaha Date: Sun, 10 May 2020 20:43:48 +0300 Subject: Fix "show syntax tree" command @matlkad please don't forget to keep it up-to-date! --- editors/code/src/commands/syntax_tree.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/src') diff --git a/editors/code/src/commands/syntax_tree.ts b/editors/code/src/commands/syntax_tree.ts index cfcf47b2f..b7616c21f 100644 --- a/editors/code/src/commands/syntax_tree.ts +++ b/editors/code/src/commands/syntax_tree.ts @@ -206,7 +206,7 @@ class AstInspector implements vscode.HoverProvider, vscode.DefinitionProvider, D } private parseRustTextRange(doc: vscode.TextDocument, astLine: string): undefined | vscode.Range { - const parsedRange = /\[(\d+); (\d+)\)/.exec(astLine); + const parsedRange = /(\d+)\.\.(\d+)/.exec(astLine); if (!parsedRange) return; const [begin, end] = parsedRange -- cgit v1.2.3