Parsing Error on identifiers with non-ascii characters
Brought to you by:
anthonysteele
At least in the Delphi2010 it is possible to use non-ascii Characters as identifiers. Sometimes it happens that one use non-ascii characters without noticing it. Delphi-Compiler doesn't have problems with it (starting from some delphi version), but the jcf2-parser does:
procedure Einfügen; // german for 'Paste' begin end;
Or something like this:
procedure DoIt(АParam: string); // notice, that the A-character in АParam is a cyrillic one.
For me (Delphi2010) the fix for this issue was extending of the checks "CharIsAlpha" and "WideCharIsWordChar" (see attached patch).