We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7fdf14 commit 5411836Copy full SHA for 5411836
crates/parser/src/grammar/items.rs
@@ -19,7 +19,7 @@ use super::*;
19
// struct S;
20
pub(super) fn mod_contents(p: &mut Parser<'_>, stop_on_r_curly: bool) {
21
attributes::inner_attrs(p);
22
- while !p.at(EOF) && !(p.at(T!['}']) && stop_on_r_curly) {
+ while !(p.at(EOF) || (p.at(T!['}']) && stop_on_r_curly)) {
23
item_or_macro(p, stop_on_r_curly);
24
}
25
0 commit comments