mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 19:10:11 +08:00
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:
@@ -1015,7 +1015,7 @@ parse_array(location& loc)
|
|||||||
}), source_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);
|
const auto sp = lex_array_separator::invoke(loc);
|
||||||
if(!sp)
|
if(!sp)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user