mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-29 15:59:29 +02:00
* C contant size specifiers can be lower cased as well:
0x12341234u is allowed
This commit is contained in:
parent
6455131ad6
commit
1f4c560e67
@ -7857,7 +7857,11 @@ end.
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.3 2001-04-10 21:22:37 peter
|
||||
Revision 1.4 2001-08-17 22:47:30 florian
|
||||
* C contant size specifiers can be lower cased as well:
|
||||
0x12341234u is allowed
|
||||
|
||||
Revision 1.3 2001/04/10 21:22:38 peter
|
||||
* more fixes that were still laying around
|
||||
|
||||
Revision 1.2 2000/12/27 21:59:59 peter
|
||||
|
@ -443,12 +443,12 @@ D [0-9]
|
||||
return(CSTRING)
|
||||
else
|
||||
return(256);
|
||||
{D}*[U]?[L]? begin
|
||||
if yytext[length(yytext)] in ['L','U'] then
|
||||
{D}*[Uu]?[Ll]? begin
|
||||
while yytext[length(yytext)] in ['L','U','l','u'] do
|
||||
Delete(yytext,length(yytext),1);
|
||||
return(NUMBER);
|
||||
end;
|
||||
"0x"[0-9A-Fa-f]*[U]?[L]?
|
||||
"0x"[0-9A-Fa-f]*[Uu]?[Ll]?
|
||||
begin
|
||||
(* handle pre- and postfixes *)
|
||||
if copy(yytext,1,2)='0x' then
|
||||
@ -456,7 +456,7 @@ D [0-9]
|
||||
delete(yytext,1,2);
|
||||
yytext:='$'+yytext;
|
||||
end;
|
||||
if yytext[length(yytext)] in ['L','U'] then
|
||||
while yytext[length(yytext)] in ['L','U','l','u'] do
|
||||
Delete(yytext,length(yytext),1);
|
||||
return(NUMBER);
|
||||
end;
|
||||
|
4250
utils/h2pas/scan.pas
4250
utils/h2pas/scan.pas
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user