소스 검색

* 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