mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-06 23:40:39 +01:00
* octal constant support
git-svn-id: trunk@772 -
This commit is contained in:
parent
c39efba41b
commit
614b06c3d4
@ -553,6 +553,18 @@ begin
|
||||
Move(TokenStart^, FCurTokenString[1], SectionLength);
|
||||
Result := tkChar;
|
||||
end;
|
||||
'&':
|
||||
begin
|
||||
TokenStart := TokenStr;
|
||||
repeat
|
||||
Inc(TokenStr);
|
||||
until not (TokenStr[0] in ['0'..'7']);
|
||||
SectionLength := TokenStr - TokenStart;
|
||||
SetLength(FCurTokenString, SectionLength);
|
||||
if SectionLength > 0 then
|
||||
Move(TokenStart^, FCurTokenString[1], SectionLength);
|
||||
Result := tkNumber;
|
||||
end;
|
||||
'$':
|
||||
begin
|
||||
TokenStart := TokenStr;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user