mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
WIP: Actually fix up syntax errors in attribute macro input
This commit is contained in:
parent
212e82fd41
commit
cff209f152
6 changed files with 112 additions and 34 deletions
|
@ -345,6 +345,7 @@ impl base_db::ProcMacroExpander for IdentityWhenValidProcMacroExpander {
|
|||
if parse.errors().is_empty() {
|
||||
Ok(subtree.clone())
|
||||
} else {
|
||||
eprintln!("parse errors: {:?}", parse.errors());
|
||||
use tt::{Delimiter, DelimiterKind, Ident, Leaf, Literal, Punct, TokenTree};
|
||||
let mut subtree = Subtree::default();
|
||||
subtree.token_trees.push(TokenTree::Leaf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue