feat: allow comments before comma

replace ws by ws_comment_newline, as suggested.
discussed here: toml-lang/toml/issues/766
This commit is contained in:
ToruNiina
2020-08-16 11:03:58 +09:00
parent 3c3ebd88b4
commit 5f38127692

View File

@@ -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)
{