8000 Eml ocaml comments support · Issue #365 · aantron/dream · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Eml ocaml comments support #365
Open
@katel0k

Description

@katel0k

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0