|
@@ -3098,8 +3098,8 @@ node_t *parse_program(list_t *tokens, size_t *pos) {
|
|
|
list_t *paths = list_new();
|
|
|
|
|
|
do {
|
|
|
- if (!AT(STRING))
|
|
|
- PARSE_ERROR("expected string");
|
|
|
+ if (!AT(STRING) && !AT(NAME))
|
|
|
+ PARSE_ERROR("expected string or identifier");
|
|
|
|
|
|
list_push(paths, tokens->data[(*pos)++]);
|
|
|
} while (MATCH(COMMA));
|