txlyre 4 달 전
부모
커밋
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));