Skip to content

Improve the identifier detection regex to support non-ascii identifiers#291

Merged
metoule merged 1 commit intodynamicexpresso:masterfrom
metoule:fix_269
Jul 5, 2023
Merged

Improve the identifier detection regex to support non-ascii identifiers#291
metoule merged 1 commit intodynamicexpresso:masterfrom
metoule:fix_269

Conversation

@metoule
Copy link
Copy Markdown
Contributor

@metoule metoule commented Jul 4, 2023

It also support identifiers that start with @.
This should follow more closely with the C# specs section 6.4.3.

Note that I removed the \b in the Regex in favor of checking for member access in the code, because the @ is not part of \w and therefore that didn't work.

Fixes #269

…rs (and also support identifiers that start with @)

Fixes dynamicexpresso#269
@metoule metoule requested a review from davideicardi as a code owner July 4, 2023 18:34
Copy link
Copy Markdown
Member

@davideicardi davideicardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🚀

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.

Interpreter.DetectIdentifiers can not find non-ascii identifier in expression

2 participants