Skip to content

Commit afa8d89

Browse files
committed
track current text in current state
1 parent f7fe8f9 commit afa8d89

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/formality-core/src/parse/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ where
300300
CurrentState {
301301
left_right,
302302
precedence: self.precedence,
303+
current_text: self.current_text,
303304
}
304305
}
305306

crates/formality-core/src/parse/parser/left_recursion.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ struct StackEntry {
4545
pub(super) struct CurrentState {
4646
pub left_right: LeftRight,
4747
pub precedence: Precedence,
48+
pub current_text: *const str,
4849
}
4950

5051
/// Determines the kind of recursion the current variant

0 commit comments

Comments
 (0)