Explorar o código

fixed anonymous object parse bug.

Nicolas Cannasse %!s(int64=20) %!d(string=hai) anos
pai
achega
f0e3223dfa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      parser.ml

+ 1 - 1
parser.ml

@@ -241,7 +241,7 @@ and parse_class_herit = parser
 and block1 = parser
 	| [< '(Const (Ident name),p); s >] ->
 		(match s with parser
-		| [< '(DblDot,_); e = expr; l = psep Comma parse_obj_decl; _ = popt comma >] -> EObjectDecl ((name,e) :: l)
+		| [< '(DblDot,_); e = expr; l = plist parse_obj_decl; _ = popt comma >] -> EObjectDecl ((name,e) :: l)
 		| [< e = expr_next (EConst (Ident name),p); _ = semicolon; b = block >] -> EBlock (e :: b))
 	| [< b = block >] -> EBlock b