dynamicexpresso / DynamicExpresso

C# expressions interpreter
http://dynamic-expresso.azurewebsites.net/
MIT License
2.02k stars 379 forks source link

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

Closed metoule closed 1 year ago

metoule commented 1 year ago

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