瀏覽代碼

* Nested classes can result in more than one dot in method names

git-svn-id: trunk@34699 -
michael 9 年之前
父節點
當前提交
90fa0210cd
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      packages/fcl-passrc/src/pparser.pp

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

@@ -4270,11 +4270,12 @@ function TPasParser.ParseProcedureOrFunctionDecl(Parent: TPasElement; ProcType:
     if Parent is TImplementationSection then
     begin
       NextToken;
-      if CurToken=tkDot then
-      begin
+      While CurToken=tkDot do
+        begin
         Result:=Result+'.'+ExpectIdentifier;
-      end else
-        UngetToken;
+        NextToken;
+        end;
+      UngetToken;
     end;
   end;