diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-09-28 19:07:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-28 19:07:00 -0400 |
commit | 7ed3ecdf4e73d04f1dc25554ac80baba908315bd (patch) | |
tree | 1558c0469c82a7caf94c3e607f8dfb98804d7319 /src/rebar_erlc_compiler.erl | |
parent | a40fe42d906fde0be0534b6c6acf7e5868860357 (diff) | |
parent | 3f0e56d9c8c6da6c304543e47ff83e101aabf847 (diff) |
Merge pull request #1339 from inaka/elbrujohalcon.behavior
Add support for behaviors, and not just behaviours
Diffstat (limited to 'src/rebar_erlc_compiler.erl')
-rw-r--r-- | src/rebar_erlc_compiler.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index b148172..e6f2b71 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -668,6 +668,8 @@ process_attr(include_lib, Form, Includes, Dir) -> [FileNode] = erl_syntax:attribute_arguments(Form), RawFile = erl_syntax:string_value(FileNode), maybe_expand_include_lib_path(RawFile, Dir) ++ Includes; +process_attr(behavior, Form, Includes, _Dir) -> + process_attr(behaviour, Form, Includes, _Dir); process_attr(behaviour, Form, Includes, _Dir) -> [FileNode] = erl_syntax:attribute_arguments(Form), File = module_to_erl(erl_syntax:atom_value(FileNode)), |