mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-07 13:27:50 +02:00
* Allow identifiers to start with _
This commit is contained in:
parent
571ad193dc
commit
9641700974
@ -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])) ;
|
||||
|
Loading…
Reference in New Issue
Block a user