summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_erlydtl_compiler.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl
index 23ea41c..25981b2 100644
--- a/src/rebar_erlydtl_compiler.erl
+++ b/src/rebar_erlydtl_compiler.erl
@@ -227,8 +227,8 @@ referenced_dtls1(Step, DtlOpts, Seen) ->
AllRefs =
lists:append(
[begin
- Cmd = lists:flatten(["grep -o [^\\\"]*",
- ExtMatch, " ", F]),
+ Cmd = lists:flatten(["grep -o [^\\\"]*\\",
+ ExtMatch, "[^\\\"]* ", F]),
case rebar_utils:sh(Cmd, ShOpts) of
{ok, Res} ->
string:tokens(Res, "\n");