PaulSquires / WinFBE

FreeBASIC Editor and Visual Designer for Windows
https://www.planetsquires.com
GNU General Public License v3.0
156 stars 39 forks source link

Too many END IF #49

Open PikeBaySkywalker opened 8 months ago

PikeBaySkywalker commented 8 months ago

An improvement could be that the editor knows that the IF THEN Statement alteady has an END IF and dont add another one.

https://github.com/PaulSquires/WinFBE/assets/36343596/d8614991-12c9-4474-9130-84b3446c10f8

PaulSquires commented 8 months ago

The matching of IF/THEN and END IF (as well as LOOP start and ends) has been on the TO FIX list for some time. I need to implement a better algorithm for counting the number nested conditional statements and then matching them (with proper indentation) with ending END IF. There are several posts on the FreeBasic forum asking for this improved functionality.