Allow viewing the source code of blocks (#894)

* Add spans to blocks and view command

* Better description; Cleanup

* Rename "view" command to "view-source"
This commit is contained in:
Jakub Žádník
2022-01-31 00:05:25 +02:00
committed by GitHub
parent 67cb720f24
commit 2fbd182993
7 changed files with 122 additions and 3 deletions

View File

@ -2956,6 +2956,7 @@ pub fn parse_block_expression(
let captures = find_captures_in_block(working_set, &output, &mut seen, &mut seen_decls);
output.captures = captures;
output.span = Some(span);
working_set.exit_scope();