fix erlang forms lexer bug

form start and end offsets are now calculated correctly
when file ends with whitespace or comment