Browse Source

keep parsing after ${e}

Simon Krajewski 12 years ago
parent
commit
74964135a4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      parser.ml

+ 2 - 2
parser.ml

@@ -819,9 +819,9 @@ and expr = parser
 	| [< '(Dollar v,p); s >] -> expr_next (EConst (Ident ("$"^v)),p) s
 
 and expr_next e1 = parser
-	| [< '(BrOpen,p1) when is_dollar_ident e1; eparam = expr; '(BrClose,p2) >] ->
+	| [< '(BrOpen,p1) when is_dollar_ident e1; eparam = expr; '(BrClose,p2); s >] ->
 		(match fst e1 with
-		| EConst(Ident s) -> (EMeta((s,[],snd e1),eparam), punion p1 p2)
+		| EConst(Ident n) -> expr_next (EMeta((n,[],snd e1),eparam), punion p1 p2) s
 		| _ -> assert false)
 	| [< '(Dot,p); s >] ->
 		if is_resuming p then display (EDisplay (e1,false),p);