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

Eml ocaml comments support #365

Open
katel0k opened this issue Dec 4, 2024 · 1 comment
Open

Eml ocaml comments support #365

katel0k opened this issue Dec 4, 2024 · 1 comment
Labels

Comments

@katel0k
Copy link

katel0k commented Dec 4, 2024

Using ocaml comments in eml files breaks preprocessing.

Minimal setup for reproducing: file main.eml.ml. Spaces in the beginning of lines are important!

  (*
  <p>Im gonna break everything:( </p>
  *)

Running dune exec dream_eml main.eml.ml produces this:

#1 "main.eml.ml"
  (*
let ___eml_buffer = Buffer.create 4096 in
(Buffer.add_string ___eml_buffer "<h1>Im gonna break everything:( </h1>\n*)");
(Buffer.contents ___eml_buffer)

Running this file gives error

File "main.eml.ml", line 1, characters 2-4:
Error: Comment not terminated

Ocaml 5.1.0, dream 1.0.0~alpha7, dune 3.17.0

@aantron
Copy link
Owner

aantron commented Dec 6, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants