Explorar o código

* fix for mantis 16347, support for filename in 'xxx' in unit clause
Partial patch by Dmitry Boyarintsev (filename is not stored in parse hierarchy)

git-svn-id: trunk@15180 -

marco %!s(int64=15) %!d(string=hai) anos
pai
achega
2b3d3f6fa5
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      packages/fcl-passrc/src/pparser.pp

+ 7 - 0
packages/fcl-passrc/src/pparser.pp

@@ -1128,6 +1128,13 @@ begin
     ASection.UsesList.Add(Element);
 
     NextToken;
+
+    if CurToken = tkin then begin
+      // todo: store unit's file name somewhere
+      NextToken; // skip in
+      ExpectToken(tkString); // skip unit's real file name
+    end;
+
     if CurToken = tkSemicolon then
       break
     else if CurToken <> tkComma then