From 0e37625782e546a38e4e1e830d7394bc4490c9a5 Mon Sep 17 00:00:00 2001 From: Kurt Barry Date: Mon, 1 Jun 2020 09:44:50 -0700 Subject: [PATCH] don't pretty-print wordpacks in gas expressions --- lib/kast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kast.js b/lib/kast.js index 05bc7f07..1b46f6fc 100644 --- a/lib/kast.js +++ b/lib/kast.js @@ -357,7 +357,7 @@ const format = (term, isRaw = false, mixFix = false, colorize = false, forSpec = , "#dyn_length(_,_)_RULES" : "#dyn_length" , "#dyn_size(_,_)_RULES" : "#dyn_size" , "maxInt(_,_)_INT-COMMON" : "maxInt" - , "#WordPackUInt112UInt112UInt32(_,_,_)_RULES": "wp[112 122 32]" + , "#WordPackUInt112UInt112UInt32(_,_,_)_RULES": forSpec ? "#WordPackUInt112UInt112UInt32" : "wp[112 112 32]" } var label = term.label in tokenMap ? tokenMap[term.label] : term.label; const childs = term.args.map(child => format(child, isRaw, mixFix, colorize, forSpec))