summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFrej Drejhammar <frej.drejhammar@gmail.com>2020-10-12 13:43:36 +0200
committerFrej Drejhammar <frej.drejhammar@gmail.com>2020-10-13 09:46:32 +0200
commit39e2dc5709f3df0e7b4533fa45820d7140b82d4c (patch)
treeb044445797884860988880208b72bfe32ef235ba /scripts
parentb9e9d6e8dd3b789dcf341d3b9b6e06c52eb01856 (diff)
downloaderlang-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-xscripts/diffable6
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>>,