diff options
author | Frej Drejhammar <frej.drejhammar@gmail.com> | 2020-10-12 13:43:36 +0200 |
---|---|---|
committer | Frej Drejhammar <frej.drejhammar@gmail.com> | 2020-10-13 09:46:32 +0200 |
commit | 39e2dc5709f3df0e7b4533fa45820d7140b82d4c (patch) | |
tree | b044445797884860988880208b72bfe32ef235ba /scripts | |
parent | b9e9d6e8dd3b789dcf341d3b9b6e06c52eb01856 (diff) | |
download | erlang-39e2dc5709f3df0e7b4533fa45820d7140b82d4c.tar.gz |
diffable: Adapt rejoin_atoms/1 to change in disassembler
As of 389c0f3d87a6826a608eb532d4926d8cfd5d3d0d all operands are
surrounded with '`':s, account for this change in rejoin_atoms/1.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/diffable | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/diffable b/scripts/diffable index c4f80da87a..ee738199cb 100755 --- a/scripts/diffable +++ b/scripts/diffable @@ -525,10 +525,10 @@ split_dis_func({Name,Arity,Lines0}, RE, Colon, Space) -> end|| L <- Lines1], {Name,Arity,Lines2}. -rejoin_atoms([<<"'",Tail/binary>> = Bin0,Next|Ops]) -> - Sz = byte_size(Tail) - 1, +rejoin_atoms([<<"`'",Tail/binary>> = Bin0,Next|Ops]) -> + Sz = byte_size(Tail) - 2, case Tail of - <<_:Sz/bytes,"'">> -> + <<_:Sz/bytes,"'`">> -> [Bin0|rejoin_atoms([Next|Ops])]; <<>> -> Bin = <<Bin0/binary,$\s,Next/binary>>, |