Fix "show syntax tree" command

@matlkad please don't forget to keep it up-to-date!
This commit is contained in:
veetaha 2020-05-10 20:43:48 +03:00
parent 2af6b4b67e
commit 9a82ee0de2

View file

@ -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