aboutsummaryrefslogtreecommitdiff
path: root/core.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-14 05:44:55 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-14 05:44:55 -0700
commit2cf8a96c703b1019195803d40c8c468562cdc8b5 (patch)
treef107505e666a1bae8a1c053444194350c2279734 /core.nom
parentf0a3c983e40fe7260be090638209321510e575e0 (diff)
Fixed out-of-order invocation args.
Diffstat (limited to 'core.nom')
-rw-r--r--core.nom3
1 files changed, 3 insertions, 0 deletions
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)