Fix bug found by Dialyzer in neotoma compiler

Thanks to Cliff Moon for correct fun clause to add.
This commit is contained in:
Tuncer Ayaz 2010-10-14 22:05:11 +02:00
parent c2917b31d4
commit 77660c5da6

View file

@ -37,6 +37,7 @@
%% "src" by defualt
%% module_ext: characters to append to the module's name.
%% "" by default
%% source_ext: extension of peg source files
-module(rebar_neotoma_compiler).
-export([compile/2]).
@ -66,7 +67,8 @@ option(Opt, Options) ->
default(doc_root) -> "src";
default(out_dir) -> "src";
default(module_ext) -> "".
default(module_ext) -> "";
default(source_ext) -> ".peg".
compile_neo(Source, Target, Config) ->
case code:which(neotoma) of
@ -136,4 +138,4 @@ referenced_pegs1(Step, Config, Seen) ->
0 -> Seen;
_ -> referenced_pegs1(sets:to_list(New), Config,
sets:union(New, Seen))
end.
end.