Explorar o código

* Allow identifiers to start with _

Michaël Van Canneyt %!s(int64=3) %!d(string=hai) anos
pai
achega
9641700974
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-base/fpexprpars.pas

+ 1 - 1
packages/fcl-base/fpexprpars.pas

@@ -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]))  ;