Skip to content

Commit 5c9f730

Browse files
committed
resursive for parse_subexpr
1 parent 1097a0d commit 5c9f730

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parser/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,7 @@ impl<'a> Parser<'a> {
13861386
}
13871387

13881388
/// Parse tokens until the precedence changes.
1389+
#[cfg_attr(feature = "recursive-protection", recursive::recursive)]
13891390
pub fn parse_subexpr(&mut self, precedence: u8) -> Result<Expr, ParserError> {
13901391
let _guard = self.recursion_counter.try_decrease()?;
13911392
debug!("parsing expr");

0 commit comments

Comments
 (0)