-
Notifications
You must be signed in to change notification settings - Fork 544
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
Fusing macro argument eats up whitespace #5061
Comments
Surprising this was missed. Might you be able to look at the V3PreProc code to see what's causing this and prepare a pull request? The t_preproc.v test should be updated to have this case in it. |
This sounds like it would be simple enough. Sure, assign it to me. |
I had a look at the LRM and the trailing I'm not really 100% sure what
Is |
Assuming we want to fuse like in the above post, like all the other tools do, I had a look at the code and think I kinda got it. I have the following macro in the test:
I see the preprocessor recognizing the After This line causes the space to be emitted and keeps the state as The next token is This is because it still thinks it's in the I don't really know what code is needed to fix this, but I'm guessing there's some extra case needed to handle |
Your analysis seems correct, including likely some new text is needed to handle WHITE when in JOIN in your post above. |
I have the following code:
I get the following error:
You can see that Verilator is not leaving a
between
foo
andextends
.I'm using Verilator 5.024 and running with
verilator test.sv --binary
.The text was updated successfully, but these errors were encountered: