summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-10-14 22:05:11 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-10-14 22:05:11 +0200
commit77660c5da60283deb425ecd7f54965f9cbff2053 (patch)
treef24b1680ee0accf2880cd48dcdf21b3207fcb798 /src
parentc2917b31d4fa9ae8fb3eed146028c84f61ef9dc7 (diff)
Fix bug found by Dialyzer in neotoma compiler
Thanks to Cliff Moon for correct fun clause to add.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_neotoma_compiler.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar_neotoma_compiler.erl b/src/rebar_neotoma_compiler.erl
index 9b50bf4..586b102 100644
--- a/src/rebar_neotoma_compiler.erl
+++ b/src/rebar_neotoma_compiler.erl
@@ -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. \ No newline at end of file
+ end.