Skip to content

Commit 77f0964

Browse files
committed
Remove some unnecessary invisible delimiter checks.
These seem to have no useful effect... they don't seem useful from a code inspection point of view, and they affect anything in the test suite.
1 parent 70067e3 commit 77f0964

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/parse/macros/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ fn check_keyword<'a, 'b: 'a>(parser: &'a mut Parser<'b>) -> Option<MacroArg> {
7979
for &keyword in RUST_KW.iter() {
8080
if parser.token.is_keyword(keyword)
8181
&& parser.look_ahead(1, |t| {
82-
t.kind == TokenKind::Eof
83-
|| t.kind == TokenKind::Comma
84-
|| t.kind == TokenKind::CloseDelim(Delimiter::Invisible)
82+
t.kind == TokenKind::Eof || t.kind == TokenKind::Comma
8583
})
8684
{
8785
parser.bump();

0 commit comments

Comments
 (0)