sxsyn, allow $1 as identifier

This commit is contained in:
Basile Burg 2023-09-23 17:29:28 +02:00
parent 22f0a5cf39
commit 4c85af2cc4
1 changed files with 1 additions and 10 deletions

View File

@ -675,21 +675,12 @@ begin
while fTokStop <= fLineBuf.length do while fTokStop <= fLineBuf.length do
begin begin
case fLineBuf[fTokStop] of case fLineBuf[fTokStop] of
'_', 'a'..'z', 'A'..'Z': '_', 'a'..'z', 'A'..'Z', '0'..'9':
begin begin
oneChr := true; oneChr := true;
fTokStop += 1; fTokStop += 1;
continue; continue;
end; end;
'0' .. '9':
begin
if oneChr then
begin
fTokStop += 1;
continue;
end
else break; // e.g $0
end
else break; else break;
end; end;
end; end;