Turkish localization causes syntax errors


Due to the culture sensitive comparisons in the lexer setting a thread's CurrentCulture to tr-TR causes syntax errors when using capital letter I's in identifiers.

For example the expression "THIS" (without quotes) causes:
SyntaxError: Unexpected character: I
Line: 1, Column: 3

While the expression "this" works as intended.

I've provided a patch that replaces ToLower with ToLowerInvariant, which does not have this problem. It does not affect strings in any way as the results from ToLower aren't kept anywhere, the lexer only passes around indexes into the expression string.

file attachments