mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-29 08:10:11 +02:00
* Allow identifiers to start with _
This commit is contained in:
parent
571ad193dc
commit
9641700974
@ -1460,7 +1460,7 @@ begin
|
|||||||
Result := DoNumber(nkBinary)
|
Result := DoNumber(nkBinary)
|
||||||
else if IsDigit(C, nkDecimal) then
|
else if IsDigit(C, nkDecimal) then
|
||||||
Result:=DoNumber(nkDecimal)
|
Result:=DoNumber(nkDecimal)
|
||||||
else if IsAlpha(C) or (C='"') then
|
else if IsAlpha(C) or (C='"') or (C='_') then
|
||||||
Result:=DoIdentifier
|
Result:=DoIdentifier
|
||||||
else
|
else
|
||||||
ScanError(Format(SErrUnknownCharacter,[FPos,C])) ;
|
ScanError(Format(SErrUnknownCharacter,[FPos,C])) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user