Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/mbe/src/to_parser_tokens.rs')
| -rw-r--r-- | crates/mbe/src/to_parser_tokens.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/mbe/src/to_parser_tokens.rs b/crates/mbe/src/to_parser_tokens.rs index 435226342e..644689f432 100644 --- a/crates/mbe/src/to_parser_tokens.rs +++ b/crates/mbe/src/to_parser_tokens.rs @@ -62,7 +62,9 @@ pub(crate) fn to_parser_tokens(buffer: &TokenBuffer) -> parser::Tokens { let kind = SyntaxKind::from_char(punct.char) .unwrap_or_else(|| panic!("{:#?} is not a valid punct", punct)); res.push(kind); - res.was_joint(punct.spacing == tt::Spacing::Joint); + if punct.spacing == tt::Spacing::Joint { + res.was_joint(); + } } } cursor.bump() |