Fix new line syntax and prevent default handlers from snippet mode