it looks like if the file is opened in another program, folding gets messed in notepad++
when I moved my file to another folder, same code was folded correctly
I was testing new v1 Atom editor, and only that file that was opened in atom had bugged folding in notepad++