aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-05-10 18:43:48 +0100
committerveetaha <[email protected]>2020-05-10 18:43:48 +0100
commit9a82ee0de25901447fc49a9337d7290c0e6f6532 (patch)
treef57583899684c027f72cd8261f9df422b84f64d4 /editors/code
parent2af6b4b67ea72b7c8365eb1bc719c896b030123d (diff)
Fix "show syntax tree" command
@matlkad please don't forget to keep it up-to-date!
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/commands/syntax_tree.ts2
1 files changed, 1 insertions, 1 deletions
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
206 } 206 }
207 207
208 private parseRustTextRange(doc: vscode.TextDocument, astLine: string): undefined | vscode.Range { 208 private parseRustTextRange(doc: vscode.TextDocument, astLine: string): undefined | vscode.Range {
209 const parsedRange = /\[(\d+); (\d+)\)/.exec(astLine); 209 const parsedRange = /(\d+)\.\.(\d+)/.exec(astLine);
210 if (!parsedRange) return; 210 if (!parsedRange) return;
211 211
212 const [begin, end] = parsedRange 212 const [begin, end] = parsedRange