Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
This commit is contained in:
Jeremie Dimino 2018-07-16 12:56:59 +01:00 committed by Jérémie Dimino
parent b7ae454d7d
commit c52d0676e8
5 changed files with 6 additions and 6 deletions

View File

@ -8,6 +8,8 @@ next
- Change the location of preprocessed files inside the build directory
(#1004, @diml)
- Fix parsing of `%{lib:name:file}` forms (#1022, fixes #1019, @diml)
1.0.0 (10/07/2018)
------------------

View File

@ -282,7 +282,7 @@ and quoted_string_after_escaped_newline = parse
{ quoted_string lexbuf }
and template_variable = parse
| (varname_char+ as name) (':' (varname_char* as payload))? '}'
| (varname_char+ as name) (':' ((':' | varname_char)* as payload))? '}'
{ let payload =
match payload with
| Some "" -> error lexbuf "payload after : in variable cannot be empty"

View File

@ -1,5 +1,5 @@
(library (name foo))
(library (name foo) (public_name foo))
(alias
(name default)
(echo %{lib:foo:foo.ml}))
(action (echo %{lib:foo:foo.ml})))

View File

@ -1,6 +1,4 @@
Regression test for #1019
$ dune build
File "dune", line 5, characters 9-10:
Error: This character is not allowed inside %{...} forms
[1]
../install/default/lib/foo/foo.ml