From 2df539a76293f028077abd81e75bbfa9b510ae07 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 5 Jan 2018 15:45:46 -0800 Subject: More cleanup of vars.XX -> \%XX --- lib/utils.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/utils.nom') diff --git a/lib/utils.nom b/lib/utils.nom index a67b056..e46326e 100644 --- a/lib/utils.nom +++ b/lib/utils.nom @@ -16,8 +16,8 @@ parse [assert %condition] as: assert %condition (nil) rule [join %strs with glue %glue] =: lua do> ".." local str_bits = {} - for i,bit in ipairs(vars.strs) do str_bits[i] = nomsu:stringify(bit) end - return table.concat(str_bits, vars.glue) + for i,bit in ipairs(\%strs) do str_bits[i] = nomsu:stringify(bit) end + return table.concat(str_bits, \%glue) parse [join %strs] as: join %strs with glue "" compile [capitalize %str, %str capitalized] to: -- cgit v1.2.3