Permalink
Browse files

[fix] compiler, syntax: expr in braces can be an inner_block

  • Loading branch information...
1 parent 84c2f7f commit 32ca50777a4882333e7ae36c7ef804ba71c357b2 @BourgerieQuentin BourgerieQuentin committed Feb 7, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 opalang/js_syntax/opa_parser.trx
@@ -1390,7 +1390,9 @@ function_arguments <- function_arguments_nosp
Used for embedding opa in texts like string or xhtml
*)
/** embedded opa **/
-opa_in_braces_nosp <- lbrace_nosp expr:e rbrace {{ e }}
+opa_in_braces_nosp <-
+ / lbrace_nosp expr:e rbrace {{ e }}
+ / lbrace_nosp (=deco(block_inner)):e rbrace {{ e }}
/** embedded opa **/
opa_in_braces <- lbrace expr:e rbrace {{ e }}

0 comments on commit 32ca507

Please sign in to comment.