Project

General

Profile

Bug #155

Reindent issue with indicators before loop

Added by Wil van Antwerpen almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
07/02/2019
Due date:
% Done:

0%


Description

Albin reported seeing an issue with the reindent logic when running it on code like this:

  [Found] Begin
      Repeat
          Lock
          Delete Fritext
          Unlock
          Find gt Fritext by Index.1
          [Found] indicate Found as Fritext.File_no   eq 71
          [Found] indicate Found as Fritext.Record_no eq O_ordart.fritextid
          [Found] Loop
      End

As you can see the loop isn't processed as closing the scope block.

It should have been processed like this:

  [Found] Begin
      Repeat
          Lock
          Delete Fritext
          Unlock
          Find gt Fritext by Index.1
          [Found] indicate Found as Fritext.File_no   eq 71
          [Found] indicate Found as Fritext.Record_no eq O_ordart.fritextid
      [Found] Loop
  End

Code to reproduce this issue can be found here:
https://support.dataaccess.com/Forums/showthread.php?63084-Release-Source-Code-Tools&p=345785#post345785

Also available in: Atom PDF