Scala parser cuts last bracket