Skip to content

Commit

Permalink
fix a parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 28, 2024
1 parent e7120f0 commit 2490aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -787,11 +787,11 @@ impl<'i> Parser<'i> {
for i in 0..modifier.args() {
loop {
args.extend(self.try_spaces());
if let Some(span) = self.try_exact(Quote.into()) {
if let Some(span) = self.try_exact(Semicolon.into()) {
self.errors.push(span.sp(ParseError::SplitInModifier));
continue;
}
if let Some(span) = self.try_exact(Quote2.into()) {
if let Some(span) = self.try_exact(DoubleSemicolon.into()) {
self.errors.push(span.sp(ParseError::UnsplitInModifier));
continue;
}
Expand Down

0 comments on commit 2490aad

Please sign in to comment.