浏览代码

* 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 15 年之前
父节点
当前提交
2b3d3f6fa5
共有 1 个文件被更改,包括 7 次插入0 次删除
  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