Improving semicolon insertion at the end of the line