diff --git a/src/lib/toml_lexer.mll b/src/lib/toml_lexer.mll index 666f0aa..e23227a 100644 --- a/src/lib/toml_lexer.mll +++ b/src/lib/toml_lexer.mll @@ -508,6 +508,7 @@ and read_comment state buf = in token state lexbuf } + | eof { token state lexbuf } | [^ '\n' '\x00'-'\x08' '\x0B'-'\x1F' '\x7F']+ { Buffer.add_string buf (Lexing.lexeme lexbuf); read_comment state buf lexbuf }