From 2cf8a96c703b1019195803d40c8c468562cdc8b5 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 14 Sep 2017 05:44:55 -0700 Subject: Fixed out-of-order invocation args. --- core.nom | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core.nom') diff --git a/core.nom b/core.nom index d152137..08115fa 100644 --- a/core.nom +++ b/core.nom @@ -204,6 +204,9 @@ rule "dict %items": lua block "vars.dict[vars.pair[1]] = vars.pair[2]" return %dict +rule ["capitalize %str", "%str capitalized"]: + lua expr ".."|vars.str:gsub("%l", string.upper, 1) + rule "restrict %fn to within %whitelist": lua block ".." |local fns = compiler:get_invocations(vars.fn) -- cgit v1.2.3