mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros
This commit is contained in:
parent
83370fe5d7
commit
a483d3bc37
39 changed files with 187 additions and 145 deletions
|
@ -88,7 +88,7 @@ fn syntax_tree_for_token(node: &SyntaxToken, text_range: TextRange) -> Option<St
|
|||
// Remove custom markers
|
||||
.replace("$0", "");
|
||||
|
||||
let parsed = SourceFile::parse(&text);
|
||||
let parsed = SourceFile::parse(&text, span::Edition::CURRENT);
|
||||
|
||||
// If the "file" parsed without errors,
|
||||
// return its syntax
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue