mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Fix "show syntax tree" command
@matlkad please don't forget to keep it up-to-date!
This commit is contained in:
parent
2af6b4b67e
commit
9a82ee0de2
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ class AstInspector implements vscode.HoverProvider, vscode.DefinitionProvider, D
|
||||||
}
|
}
|
||||||
|
|
||||||
private parseRustTextRange(doc: vscode.TextDocument, astLine: string): undefined | vscode.Range {
|
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;
|
if (!parsedRange) return;
|
||||||
|
|
||||||
const [begin, end] = parsedRange
|
const [begin, end] = parsedRange
|
||||||
|
|
Loading…
Reference in a new issue