mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-01 07:48:45 +00:00
Auto merge of #14140 - Veykril:proc-macro-srv-fix, r=Veykril
fix: Fix proc-macro-server incorrectly stripping delimiters
🙄
This commit is contained in:
commit
23871f9dd1
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ impl Extend<TokenStream> for TokenStream {
|
||||||
for tkn in item {
|
for tkn in item {
|
||||||
match tkn {
|
match tkn {
|
||||||
tt::TokenTree::Subtree(subtree)
|
tt::TokenTree::Subtree(subtree)
|
||||||
if subtree.delimiter.kind != tt::DelimiterKind::Invisible =>
|
if subtree.delimiter.kind == tt::DelimiterKind::Invisible =>
|
||||||
{
|
{
|
||||||
self.token_trees.extend(subtree.token_trees);
|
self.token_trees.extend(subtree.token_trees);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue