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

Recognize all macro definitions in hash-style comments #338

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

nforro
Copy link
Member

@nforro nforro commented Dec 13, 2023

Macro definitions can be commented out by replacing '%' with '#', for example %global debug 1 with #global debug 1, to avoid Macro expanded in comment warning. However, the same can be achieved also by escaping the '%' in the comment, i.e. #%%global debug 1, and even if the '%' is not escaped, it is still parseable, so we should be able to parse it as well.

Macro definitions can be commented out by replacing '%' with '#',
for example `%global debug 1` with `#global debug 1`, to avoid
`Macro expanded in comment` warning. However, the same can be achieved
also by escaping the '%' in the comment, i.e. `#%%global debug 1`,
and even if the '%' is not escaped, it is still parseable, so we should
be able to parse it as well.

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

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

✔️ pre-commit SUCCESS in 1m 48s
✔️ specfile-tests-rpm-deps SUCCESS in 1m 08s
✔️ specfile-tests-pip-deps SUCCESS in 1m 06s

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

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

✔️ pre-commit SUCCESS in 1m 47s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 24ef933 into main Dec 14, 2023
18 of 27 checks passed
@delete-merged-branch delete-merged-branch bot deleted the macro_definitions branch December 14, 2023 07:51
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.

3 participants