txlyre 2 weeks ago
parent
commit
567aec6e90
1 changed files with 2 additions and 2 deletions
  1. 2 2
      qic.c

+ 2 - 2
qic.c

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