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

DirectxLexer.py #247

Closed
wants to merge 18 commits into from
Closed

DirectxLexer.py #247

wants to merge 18 commits into from

Conversation

Firaas-Ahmedkhn
Copy link

@Firaas-Ahmedkhn Firaas-Ahmedkhn commented Jan 1, 2025

Summary

Corrected the regular expression patterns for the WHILE and DO tokens in the lexer to remove unnecessary escape characters. This ensures proper keyword matching and avoids tokenization errors.

Changes

Updated the WHILE pattern from r"\b\while\b" to r"\bwhile\b".
Updated the DO pattern from r"\b\do\b" to r"\bdo\b".

Testing

Manually tested the updated lexer with sample HLSL code containing while and do keywords to confirm correct tokenization.
Verified no other token patterns were affected.

Checklist

  • Tests cover new or changed code (or reason why not)
  • Linked the issue with a closing keyword (if applicable)
  • Only touched files related to the issue
  • Everything builds and runs locally

@NripeshN
Copy link
Member

NripeshN commented Jan 3, 2025

Could you please add tests for Static Token

@Firaas-Ahmedkhn
Copy link
Author

Hey, I didn't understand your request. Can you please elaborate?

Copy link

This pull request has been marked as stale because it has been inactive for more than 14 days. Please update this pull request or it will be automatically closed in 7 days.

@github-actions github-actions bot added the stale label Jan 22, 2025
Copy link

This pull request has been automatically closed because it has been inactive for more than 14 days. Please reopen if you still intend to submit this pull request.

@github-actions github-actions bot closed this Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants