two new tests for comments and one (tiny) fix for trailing comments
This commit is contained in:
parent
447e0b1356
commit
19402fbee4
5 changed files with 20 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue