mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Fix bug found by Dialyzer in neotoma compiler
Thanks to Cliff Moon for correct fun clause to add.
This commit is contained in:
parent
c2917b31d4
commit
77660c5da6
1 changed files with 4 additions and 2 deletions
|
@ -37,6 +37,7 @@
|
||||||
%% "src" by defualt
|
%% "src" by defualt
|
||||||
%% module_ext: characters to append to the module's name.
|
%% module_ext: characters to append to the module's name.
|
||||||
%% "" by default
|
%% "" by default
|
||||||
|
%% source_ext: extension of peg source files
|
||||||
-module(rebar_neotoma_compiler).
|
-module(rebar_neotoma_compiler).
|
||||||
|
|
||||||
-export([compile/2]).
|
-export([compile/2]).
|
||||||
|
@ -66,7 +67,8 @@ option(Opt, Options) ->
|
||||||
|
|
||||||
default(doc_root) -> "src";
|
default(doc_root) -> "src";
|
||||||
default(out_dir) -> "src";
|
default(out_dir) -> "src";
|
||||||
default(module_ext) -> "".
|
default(module_ext) -> "";
|
||||||
|
default(source_ext) -> ".peg".
|
||||||
|
|
||||||
compile_neo(Source, Target, Config) ->
|
compile_neo(Source, Target, Config) ->
|
||||||
case code:which(neotoma) of
|
case code:which(neotoma) of
|
||||||
|
|
Loading…
Reference in a new issue