Diff

util/rsm.lua @ 10763:e0e2ae050d65

util.rsm: Explicitly serialize numbers in correct format
author Kim Alvefur <zash@zash.se>
date Thu, 23 Apr 2020 18:40:57 +0200
parent 10761:b53193bb21cc
child 10764:1fbfcc2f6805
line wrap: on
line diff
--- a/util/rsm.lua	Thu Apr 23 18:17:54 2020 +0200
+++ b/util/rsm.lua	Thu Apr 23 18:40:57 2020 +0200
@@ -61,7 +61,13 @@
 		else
 			st:tag("before"):text(tostring(data)):up();
 		end
-	end
+	end;
+	max = function (st, data)
+		st:tag("max"):text(inttostr(data)):up();
+	end;
+	count = function (st, data)
+		st:tag("count"):text(inttostr(data)):up();
+	end;
 }, {
 	__index = function(_, name)
 		return function(st, data)