add semicolon after the statements
refactor parser lineno adjustment; ref #1667