two new tests for comments and one (tiny) fix for trailing comments

This commit is contained in:
alisdair sullivan 2012-04-01 17:53:59 -07:00
parent 447e0b1356
commit 19402fbee4
5 changed files with 20 additions and 1 deletions

View file

@ -972,7 +972,7 @@ single_comment(<<?newline, Rest/binary>>, Handler, Stack, Opts) ->
end_comment(Rest, Handler, Stack, Opts);
single_comment(<<_/utf8, Rest/binary>>, Handler, Stack, Opts) ->
single_comment(Rest, Handler, Stack, Opts);
single_comment(<<>>, Handler, [done], Opts) ->
single_comment(<<>>, Handler, [done], Opts=#opts{explicit_end=false}) ->
end_comment(<<>>, Handler, [done], Opts);
single_comment(<<>>, Handler, Stack, Opts) ->
?incomplete(single_comment, <<>>, Handler, Stack, Opts);