Skip to content

Commit 0d5b480

Browse files
committed
Treat ; as a terminator rather than something that can be glued together in an expression
1 parent 63a3c39 commit 0d5b480

File tree

1 file changed

+1
-0
lines changed
  • src/tools/rust-analyzer/crates/tt/src

1 file changed

+1
-0
lines changed

src/tools/rust-analyzer/crates/tt/src/iter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ impl<'a, S: Copy> TtIter<'a, S> {
132132
}
133133
('-' | '!' | '*' | '/' | '&' | '%' | '^' | '+' | '<' | '=' | '>' | '|', '=', _)
134134
| ('-' | '=' | '>', '>', _)
135+
| (_, _, Some(';'))
135136
| ('<', '-', _)
136137
| (':', ':', _)
137138
| ('.', '.', _)

0 commit comments

Comments
 (0)