Permalink
Browse files

[enhance] opa syntax: add an optional slash at the start of sum type …

…syntax
  • Loading branch information...
1 parent 04666b5 commit 3c068743d72caf6c2e222a9dd2fa8646213d1866 @OpaOnWindowsNow OpaOnWindowsNow committed Sep 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 opalang/syntax/opa_parser.trx
@@ -1134,7 +1134,7 @@ just_typ <-
;just_type_without_arrow <- type_sum
/ just_type_without_sum
-type_sum <- (=list1(type_sum_element,(=infix(Opa_lexer.slash)))):l end_of_type_sum?:o
+type_sum <- (=infix(Opa_lexer.slash))? (=list1(type_sum_element,(=infix(Opa_lexer.slash)))):l end_of_type_sum?:o
{{ match l,o with
| [h], None ->
( match undecorate h with

0 comments on commit 3c06874

Please sign in to comment.