array: allow omitting space after array dash when linebreak follows
This commit is contained in:
4
cfg.h
4
cfg.h
@@ -571,8 +571,8 @@ parsed_value config_parse_list(string* s, size_t* line, size_t* col, size_t inde
|
||||
*l =new_list_config_value();
|
||||
|
||||
while(true) {
|
||||
if (s->str[0] != ' ') return config_value_parse_error("expected space to start list element", *line, *col);
|
||||
s->str++;
|
||||
if (s->str[0] != ' ' && s->str[0] != '\n') return config_value_parse_error("expected space to start list element", *line, *col);
|
||||
if (s->str[0] == ' ') s->str++;
|
||||
consumed += 1;
|
||||
elem = config_parse_value(s, line, col, indent);
|
||||
|
||||
|
Reference in New Issue
Block a user