* Allow identifiers to start with _

This commit is contained in:
Michaël Van Canneyt 2021-11-26 12:00:33 +01:00
parent 571ad193dc
commit 9641700974

View File

@ -1460,7 +1460,7 @@ begin
Result := DoNumber(nkBinary)
else if IsDigit(C, nkDecimal) then
Result:=DoNumber(nkDecimal)
else if IsAlpha(C) or (C='"') then
else if IsAlpha(C) or (C='"') or (C='_') then
Result:=DoIdentifier
else
ScanError(Format(SErrUnknownCharacter,[FPos,C])) ;