diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl index 12077f2..958b976 100644 --- a/src/rebar_erlydtl_compiler.erl +++ b/src/rebar_erlydtl_compiler.erl @@ -173,8 +173,8 @@ referenced_dtls1(Step, Config, 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");