aboutsummaryrefslogtreecommitdiff
path: root/lib/utils.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-01-05 15:45:46 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-01-05 15:45:46 -0800
commit2df539a76293f028077abd81e75bbfa9b510ae07 (patch)
tree596406142ede0e24bc52ac980e8790593137fb2a /lib/utils.nom
parent139bd76efc5758c1826cd89fcfd65e55e6416ec9 (diff)
More cleanup of vars.XX -> \%XX
Diffstat (limited to 'lib/utils.nom')
-rw-r--r--lib/utils.nom4
1 files changed, 2 insertions, 2 deletions
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: