浏览代码

Fix typo in parse error message.

Marmotini 8 年之前
父节点
当前提交
fccd22a632
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/compiler/gravity_parser.c

+ 1 - 1
src/compiler/gravity_parser.c

@@ -2285,7 +2285,7 @@ static gnode_t *parse_compound_statement (gravity_parser_t *parser) {
 	gnode_r *stmts = gnode_array_create();
 	gnode_r *stmts = gnode_array_create();
 	while (token_isstatement(gravity_lexer_peek(lexer))) {
 	while (token_isstatement(gravity_lexer_peek(lexer))) {
         if (++parser->depth > MAX_RECURSION_DEPTH) {
         if (++parser->depth > MAX_RECURSION_DEPTH) {
-            REPORT_ERROR(gravity_lexer_token(lexer), "Maximum statament recursion depth reached.");
+            REPORT_ERROR(gravity_lexer_token(lexer), "Maximum statement recursion depth reached.");
             return NULL;
             return NULL;
         }
         }
 		gnode_t *node = parse_statement(parser);
 		gnode_t *node = parse_statement(parser);