Permalink
Browse files

[fix] compiler, syntax: some pattern bindings was parsed as expressio…

…n which implies a parse error. Bingind should have higher priority
  • Loading branch information...
1 parent f52dac9 commit 920d0ffe7356d88c45db9730b51122bf4823db5a @BourgerieQuentin BourgerieQuentin committed Feb 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 opalang/js_syntax/opa_parser.trx
View
2 opalang/js_syntax/opa_parser.trx
@@ -812,12 +812,12 @@ expr_noop_coerced <- (=type_maybe((=deco(expr_noop_simple)):e
expr_noop_simple <-
/ side_effect_expr
/ function_call_dot (* also contains directives, ids and bypasses *)
+ / binding
/ match
/ lambda
/ module
/ record / block (* Becareful : Keep this order for keep single fields record *)
/ tuple_expr
- / binding
/ Parser_path.path_kind:v {{ let (p, k) = v in DBPath (p, k) }}
(* FIXME: useful? / paths_opa_expr / props_aux*)
/ Css.css_map:e {{ undecorate e }} (* useful when saying some_style = ... *)

0 comments on commit 920d0ff

Please sign in to comment.