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

[Lex] - Assume %if 0 followed by %endif is a comment #20

Open
harm-smits opened this issue Feb 17, 2020 · 1 comment
Open

[Lex] - Assume %if 0 followed by %endif is a comment #20

harm-smits opened this issue Feb 17, 2020 · 1 comment
Assignees

Comments

@harm-smits
Copy link

It is common practice to use %if 0 along with %endif to make block comments in NASM. Do you recon its feasible to add support for this? Wouldn't seem more than adjusting the NASMCommenter.java file:

public String getBlockCommentPrefix() {

@ajkhoury
Copy link
Owner

This turns out to be more difficult than originally thought. I think I'm going to have to adjust the language flex to track %if 0 along with %endif blocks since %if is matched as a preprocessor rule in the language BNF.

@harm-smits harm-smits changed the title Assume %if 0 followed by %endif is a comment [Lex] - Assume %if 0 followed by %endif is a comment Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants