Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPPO directive break the flow in OCaml #447

Open
giraud opened this issue Jan 11, 2024 · 0 comments
Open

CPPO directive break the flow in OCaml #447

giraud opened this issue Jan 11, 2024 · 0 comments

Comments

@giraud
Copy link
Owner

giraud commented Jan 11, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant