Skip to content

Commit

Permalink
Fix DELETE_RULE for 4.03 (nonrec flag)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilisp committed Apr 30, 2016
1 parent 4273c0c commit 926305b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions syntax/std/pa_deriving_std.ml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ struct
open Camlp4.PreCast
include Syntax

#if ocaml_version >= (4, 03)
DELETE_RULE Gram str_item: "type"; opt_nonrec; type_declaration END
DELETE_RULE Gram sig_item: "type"; opt_nonrec; type_declaration END
#else
DELETE_RULE Gram str_item: "type"; type_declaration END
DELETE_RULE Gram sig_item: "type"; type_declaration END
#endif

open Ast

Expand Down

0 comments on commit 926305b

Please sign in to comment.