Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[feature] opa syntax: re-enable local open

  • Loading branch information...
commit ad125fc0287953a836666b16c4601b156f62f5a1 1 parent 155f1eb
@OpaOnWindowsNow OpaOnWindowsNow authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  opalang/syntax/opa_parser.trx
View
2  opalang/syntax/opa_parser.trx
@@ -877,6 +877,8 @@ letin <- pos:pos1 local_binding_directives:dirs Opa_lexer.REC (=list1pos(rec_bin
{{ push_hint (`same_indent (pos1,pos2));
bind_in_to_expr_in dirs b e
}}
+ / pos:pos1 Opa_lexer.OPEN (=list1(expr,Opa_lexer.comma)):l separator:pos2 expr:e
+ {{ push_hint (`same_indent (pos1,pos2)); undecorate (open_ l e) }}
and <- spacing pos:p Opa_lexer.AND {{ p }}
(* the ! here is here to prevent code such as {r=123x} to parse as {r=123 x}
Please sign in to comment.
Something went wrong with that request. Please try again.