Skip to content

CPPO directive break the flow in OCaml #447

Open
@giraud

Description

@giraud

plugin version: 0.119

Description

Incorrect parsing when using a #if directive, it should be 'transparent' to the parser
image

code

let _ = match x with
  | false -> None
  #if OCAML_MAJOR = 5
  | true -> Some(5)
  #elif OCAML_MAJOR = 4 && OCAML_MINOR = 6
  | true -> Some(4)
  #endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions