Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 32ca50777a4882333e7ae36c7ef804ba71c357b2 1 parent 84c2f7f
Quentin Bourgerie authored February 07, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  opalang/js_syntax/opa_parser.trx
4  opalang/js_syntax/opa_parser.trx
@@ -1390,7 +1390,9 @@ function_arguments <- function_arguments_nosp
1390 1390
   Used for embedding opa in texts like string or xhtml
1391 1391
 *)
1392 1392
 /** embedded opa **/
1393  
-opa_in_braces_nosp <- lbrace_nosp expr:e rbrace {{ e }}
  1393
+opa_in_braces_nosp <-
  1394
+  / lbrace_nosp expr:e rbrace {{ e }}
  1395
+  / lbrace_nosp (=deco(block_inner)):e rbrace {{ e }}
1394 1396
 /** embedded opa **/
1395 1397
 opa_in_braces <- lbrace expr:e rbrace {{ e }}
1396 1398
 

0 notes on commit 32ca507

Please sign in to comment.
Something went wrong with that request. Please try again.