浏览代码

Fix sub string highlighting for form positions

pull/828/head
Heinz N. Gies 9 年前
父节点
当前提交
a08fd03d3f
共有 1 个文件被更改,包括 4 次插入7 次删除
  1. +4
    -7
      src/rebar_dialyzer_format.erl

+ 4
- 7
src/rebar_dialyzer_format.erl 查看文件

@ -278,14 +278,11 @@ call_or_apply_to_string(ArgNs, FailReason, SigArgs, SigRet,
end.
form_positions(ArgNs) ->
ArgS = form_position_string(ArgNs),
case ArgNs of
[_] -> "an opaque term as ";
[_,_|_] -> "opaque terms as "
end ++ form_position_string(ArgNs) ++
case ArgNs of
[_] -> " argument";
[_,_|_] -> " arguments"
end.
[_] -> fmt("~!^an opaque term as ~!!~s~!^ argument", [ArgS]);
[_,_|_] -> fmt("~!^opaque terms as ~!!~s~!^ arguments", [ArgS])
end.
%% We know which positions N are to blame;
%% the list of triples will never be empty.

正在加载...
取消
保存