txlyre 4 сар өмнө
parent
commit
567aec6e90
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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));