Skip to content

Commit

Permalink
fix(parser): add semicolon to declaration recovery set (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatcln authored Feb 10, 2022
1 parent cc967b4 commit c970d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/mun_syntax/src/parsing/grammar/declarations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::*;
use crate::{parsing::grammar::paths::is_use_path_start, T};

pub(super) const DECLARATION_RECOVERY_SET: TokenSet =
TokenSet::new(&[T![fn], T![pub], T![struct], T![use]]);
TokenSet::new(&[T![fn], T![pub], T![struct], T![use], T![;]]);

pub(super) fn mod_contents(p: &mut Parser) {
while !p.at(EOF) {
Expand Down

0 comments on commit c970d80

Please sign in to comment.