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

CDirectiveLexer: #undef support, etc. #1281

Merged
merged 3 commits into from
Aug 29, 2023
Merged

Conversation

throwaway96
Copy link
Contributor

This PR includes a few changes to CDirectiveLexer:

  • Add support for #undef. Includes unit tests.
  • Add State.IgnoreToEndOfLine, and use it to ignore extra tokens for various directives. Includes unit tests.
  • Other minor cleanup: remove unused Directive.__Pragma; formatting.

@uxmal uxmal merged commit 5f41759 into uxmal:master Aug 29, 2023
7 checks passed
@uxmal
Copy link
Owner

uxmal commented Aug 29, 2023

Thanks for this nice contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants