Skip to content

Commit

Permalink
track current text in current state
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Nov 7, 2023
1 parent f7fe8f9 commit afa8d89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/formality-core/src/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ where
CurrentState {
left_right,
precedence: self.precedence,
current_text: self.current_text,
}
}

Expand Down
1 change: 1 addition & 0 deletions crates/formality-core/src/parse/parser/left_recursion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ struct StackEntry {
pub(super) struct CurrentState {
pub left_right: LeftRight,
pub precedence: Precedence,
pub current_text: *const str,
}

/// Determines the kind of recursion the current variant
Expand Down

0 comments on commit afa8d89

Please sign in to comment.