fix parsing of single line nested for loops