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

Raise ExpressionEvaluatorSyntaxErrorException while declaring a variable with the prefix "new" #116

Closed
guyleaf opened this issue Sep 10, 2021 · 2 comments
Labels

Comments

@guyleaf
Copy link

guyleaf commented Sep 10, 2021

Problem

Declaring a variable with the prefix "new" will cause an exception.
The evaluator will identify it as new instance behavior.

Reproduce

Demo: https://dotnetfiddle.net/LwThhc

Thanks,
guyleaf

@guyleaf guyleaf changed the title Raise ExpressionEvaluatorSyntaxErrorException when the prefix of a variable is "new..." Raise ExpressionEvaluatorSyntaxErrorException while executing a method if the prefix of the variable is "new..." Sep 10, 2021
@guyleaf guyleaf changed the title Raise ExpressionEvaluatorSyntaxErrorException while executing a method if the prefix of the variable is "new..." Raise ExpressionEvaluatorSyntaxErrorException while declaring a variable with the prefix "new" Sep 13, 2021
@guyleaf
Copy link
Author

guyleaf commented Sep 13, 2021

I fixed it in PR #117.

codingseb added a commit that referenced this issue Sep 13, 2021
Fix instance creation with new keyword regex detection bug mentioned in issue #116
@codingseb codingseb added the bug label Sep 13, 2021
@codingseb
Copy link
Owner

Your PR has been merged and is live in version 1.4.32.0.
Thanks for it.

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

No branches or pull requests

2 participants