always have a new line at the end of your file 
puts this in your sublime user preferences "ensure_newline_at_eof_on_save": true,