fix comment bug ('\n' counted as part of the comment + eof instead of '\n')
worked on nested list, but function seems to have wring type (do not compile anymore)