Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

chore: keep track of the position in the span, and improve the array parser #243

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

azjezz
Copy link
Collaborator

@azjezz azjezz commented Dec 22, 2022

No description provided.

Comment on lines -187 to -201
pub fn bracketed<T>(
state: &mut State,
func: &(dyn Fn(&mut State) -> ParseResult<T>),
) -> ParseResult<Bracketed<T>> {
let left_bracket = skip_left_bracket(state)?;
let inner = func(state)?;
let right_bracket = skip_right_bracket(state)?;

Ok(Bracketed {
left_bracket,
inner,
right_bracket,
})
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i believe i made a mistake by introducing these, the only one that should be kept is CommaSeparated.

@azjezz azjezz force-pushed the chore/position-arrays branch 2 times, most recently from 409772d to 5aa72b8 Compare December 22, 2022 20:00
…parser

Signed-off-by: azjezz <azjezz@protonmail.com>
@azjezz azjezz force-pushed the chore/position-arrays branch from 5aa72b8 to f5093e4 Compare December 22, 2022 20:22
@azjezz azjezz merged commit 48725c1 into main Dec 22, 2022
@azjezz azjezz deleted the chore/position-arrays branch December 22, 2022 20:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant