zufuliu / notepad4

Notepad4 (Notepad2⨯2, Notepad2++) is a light-weight Scintilla based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for many programming languages and documents, bundled with file browser plugin matepath.
Other
2.6k stars 184 forks source link

The simplified `if` of Fortran should not be folded. #820

Closed zoziha closed 1 month ago

zoziha commented 1 month ago

Description

Fortran has a one-line if syntax, which is a simplified if and has the following style:

if (.true.) x = 1

It should not be folded. I noticed that Notepad3 did it correctly, but Notepad4 has not handled this situation correctly at present.

Screenshot (Left: Notepad3, Right: Notepad4.) Notepad4 should not collapse single-line `if` statements. ![image](https://github.com/user-attachments/assets/143b42d0-2b25-4e85-8877-65f4c8a08bfe) ![image](https://github.com/user-attachments/assets/7a693dd0-834d-4857-b598-20439f51ac6e)
zufuliu commented 1 month ago

Fixed by e5dbf6e91086cccaf19e8168d1c5a7b1fefbdaa6, you can download fixed program from https://github.com/zufuliu/notepad4/actions. image

zoziha commented 1 month ago

Thank you for the quick fix, @zufuliu .