Fix handling of #pragma float.

This was not getting recognized properly, because float is a keyword rather than an identifier.
This commit is contained in:
Stephen Heumann 2023-04-30 21:39:29 -05:00
parent 9d5360e844
commit c2262929e9

View File

@ -3493,7 +3493,9 @@ if ch in ['a','d','e','i','l','p','u','w'] then begin
expandMacros := false;
NextToken;
expandMacros := true;
if token.class <> identifier then begin
if token.kind = floatsy then
token.name := @'float'
else if token.class <> identifier then begin
if (lint & lintPragmas) <> 0 then
Error(110);
goto 2;