class parser fix

before the parser had problems with declarations across multiple lines.