Skip to content
This repository
Browse code

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

…n which implies a parse error. Bingind should have higher priority
  • Loading branch information...
commit 920d0ffe7356d88c45db9730b51122bf4823db5a 1 parent f52dac9
Quentin Bourgerie authored February 10, 2012

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

  1. 2  opalang/js_syntax/opa_parser.trx
2  opalang/js_syntax/opa_parser.trx
@@ -812,12 +812,12 @@ expr_noop_coerced <- (=type_maybe((=deco(expr_noop_simple)):e
812 812
 expr_noop_simple <-
813 813
   / side_effect_expr
814 814
   / function_call_dot (* also contains directives, ids and bypasses *)
  815
+  / binding
815 816
   / match
816 817
   / lambda
817 818
   / module
818 819
   / record / block (* Becareful : Keep this order for keep single fields record *)
819 820
   / tuple_expr
820  
-  / binding
821 821
   / Parser_path.path_kind:v {{ let (p, k) = v in DBPath (p, k) }}
822 822
   (* FIXME: useful? / paths_opa_expr / props_aux*)
823 823
   / Css.css_map:e {{ undecorate e }} (* useful when saying some_style = ... *)

0 notes on commit 920d0ff

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