-
Notifications
You must be signed in to change notification settings - Fork 470
Support multiple extensions in (dialect) patterns #7777
Copy link
Copy link
Closed
ocaml/opam-repository
#24013Labels
feature-requestUser wanted featuresUser wanted features
Description
Desired Behavior
Dream currently recommends .eml.ml files, to take advantage of partial syntax highlighting of their ML parts. This is currently not possible with (dialect):
(lang dune 2.0)
(dialect
(name eml)
(implementation
(extension eml.ml)
(preprocess (run %{bin:dream_eml} --stdout %{input-file})))
(interface
(extension emli)
(format (run cat))))
results in
Entering directory '/home/antron/code/dreamworld'
File "dream/example/7-template/dune-project", line 6, characters 13-19:
6 | (extension eml.ml)
^^^^^^
Error: extension must not contain '.'
Is it possible to support such extensions?
Example
(lang dune 2.0)
(dialect
(name eml)
(implementation
(extension eml.ml)
(preprocess (run %{bin:dream_eml} --stdout %{input-file})))
(interface
(extension emli)
(format (run cat))))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature-requestUser wanted featuresUser wanted features