Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of quotes during option tokenization #329

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

nforro
Copy link
Member

@nforro nforro commented Dec 1, 2023

This reverts commit b5a1ce7 and constructs the input list in such a way that nodes other than string literals are treated as regular characters, making the original algorithm work even with quotes contained within macro expansions and other expressions.

Fixes #326.

Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/f84e233c21434fadbe578c5e949173d7

✔️ pre-commit SUCCESS in 1m 51s
✔️ specfile-tests-rpm-deps SUCCESS in 1m 16s
✔️ specfile-tests-pip-deps SUCCESS in 1m 10s

This reverts commit b5a1ce7 and constructs the input list in such a way
that nodes other than string literals are treated as regular characters,
making the original algorithm work even with quotes contained within
macro expansions and other expressions.

Signed-off-by: Nikola Forró <[email protected]>
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/5ec3fba1d0684d0bb94537d493c2850d

✔️ pre-commit SUCCESS in 1m 53s
✔️ specfile-tests-rpm-deps SUCCESS in 1m 12s
✔️ specfile-tests-pip-deps SUCCESS in 1m 04s

@nforro nforro added the mergeit Zuul, merge it! label Dec 4, 2023
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/c3fe4c1435fc4beb9012de476f2d72b8

✔️ pre-commit SUCCESS in 2m 17s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit c536ebf into main Dec 4, 2023
30 of 31 checks passed
@delete-merged-branch delete-merged-branch bot deleted the parsing branch December 4, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Zuul, merge it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option tokenizer fails on an enquoted macro expansion
2 participants