Here is a fortran 90 file [https://pastebin.com/siCWfA5G%5D(https://pastebin.com/siCWfA5G)
If you fold the code in geany. You will find the folding is not right. You can verify this compared to notepad++
Folding is provided by the Scintilla editing component Geany uses, please report this to that [project](https://sourceforge.net/p/scintilla/bugs/) and report the bug number here for tracking.
Notepad++ also uses Scintilla AFAIK.
Need more details, for example Geany version, operating system, description of problem, expected result, etc. "Not quite right" is not actionable, unless perhaps you're a Fortran programmer who has used Notepad++.
@codebrainz Ok, this is what geany folds http://pasteboard.co/5mQRcl2nG.png and this is what notepad++ folds http://pasteboard.co/5mRJMfuD8.png
As @codebrainz said what version of geany
@elextr Ok, geany 1.29, win 10 system
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++.
http://fortranwiki.org/fortran/show/Keywords says that in F77 (and therefore F90) the keyword is `block data`, two words, which neither Geany nor Scintilla will handle, but in F2008 `block` by itself is a keyword.
Geany does not distinguish versions of Fortran (or any language) and so the keyword lists are usually a combination up to the latest version.
As @b4n says, you would need to make yourself a custom version of the filetype file.
github-comments@lists.geany.org