I can reproduce this, and it's because we list block as a primary keyword, and the lexer folds on the block keyword. I am not sure what is the right thing to do here as I have nearly zero Fortran knowledge. And gfortran doesn't really help as it doesn't like your sample file.

The question is probably whether block is a Fortran 90 keyword, and what to do if it's not. Or whether the Scintilla folder should be more careful in where it accepts a keyword as beginning a fold.
If block is only a keyword in a newer version of Fortran, and it's not a sensible option to alter the folding code, we might have to have more Fortran filetypes for the various versions.

To go further we need more Fortran knowledge, but in the meantime you can remove the block keyword from the primary keyword list in filetypes.fortran and it should work alright.


PS: please avoid showing different input and expect them to compare equal, I understand it's not a real factor here, but my first impression seeing your two captures being of different files (simply look at the line numbers) was to believe you overlooked your test and there was no suggestion the file not working in Geany actually worked in NotePad++.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.