Skip to content

Commit

Permalink
feat: allow comments before comma
Browse files Browse the repository at this point in the history
replace ws by ws_comment_newline, as suggested.
discussed here: toml-lang/toml/issues/766
  • Loading branch information
ToruNiina committed Aug 16, 2020
1 parent 3c3ebd8 commit 5f38127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toml/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ parse_array(location& loc)
}), source_location(loc));
}

using lex_array_separator = sequence<maybe<lex_ws>, character<','>>;
using lex_array_separator = sequence<maybe<lex_ws_comment_newline>, character<','>>;
const auto sp = lex_array_separator::invoke(loc);
if(!sp)
{
Expand Down

0 comments on commit 5f38127

Please sign in to comment.