Parser Exception on spanish character in identifier
Brought to you by:
anthonysteele
the following declaration throw a parser exception :
var años : integer;
The spanish character is the problem in the identifier "años".
---------------------------------------------------------------
Tested with JCF v2.43
Exception TEParseError Unexpected token, expected ":"
Near Unknown ñ at line 6 col 4
Test file to reproduce the exception
Priority raised as it is a parser exception.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
try to modify JcfUnicode.pas, function WideCharIsWordChar:
function WideCharIsWordChar(const wc: WideChar): Boolean;
var
ch: char;
begin
if IsCharAlphaW(wc) then //qlg 2010-08-17
Result := True //qlg 2010-08-17
else
begin
if WideCharIsHigh(wc) then
begin
Result := False;
exit;
end;
ch := char(wc);
Result := CharIsAlpha(ch) or (ch = '_');
end;
end;