Procházet zdrojové kódy

* Fixed external name case for procedure

git-svn-id: trunk@19786 -
michael před 13 roky
rodič
revize
f7da4a210c
1 změnil soubory, kde provedl 10 přidání a 5 odebrání
  1. 10 5
      packages/fcl-passrc/src/pparser.pp

+ 10 - 5
packages/fcl-passrc/src/pparser.pp

@@ -2461,12 +2461,17 @@ begin
         if CurToken in [tkString,tkIdentifier] then
           begin
           NextToken;
-          Tok:=UpperCase(CurTokenString);
-          if Tok='NAME' then
+          if CurToken=tkSemicolon then
+            UnGetToken
+          else
             begin
-            NextToken;
-            if not (CurToken in [tkString,tkIdentifier]) then
-              ParseExc(Format(SParserExpectTokenError, [TokenInfos[tkString]]));
+            Tok:=UpperCase(CurTokenString);
+            if Tok='NAME' then
+              begin
+              NextToken;
+              if not (CurToken in [tkString,tkIdentifier]) then
+                ParseExc(Format(SParserExpectTokenError, [TokenInfos[tkString]]));
+              end;
             end;
           end
         else