浏览代码

* patch by Rika to fix position reporting in macro redefintions, resolves #40082

florian 10 月之前
父节点
当前提交
f2d44148fb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/scanner.pas

+ 1 - 0
compiler/scanner.pas

@@ -2564,6 +2564,7 @@ type
         else
           begin
             mac.defined:=true;
+            mac.fileinfo:=current_tokenpos;
             mac.is_compiler_var:=false;
           { delete old definition }
             mac.free_buftext;