aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-22 00:05:54 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-22 00:05:54 -0700
commit03b4b0ea9c6372fb4081b9486cfd84e737cdce28 (patch)
tree12bd1b44929d919018af1e962b9dbeea2b7cd430 /nomsu.moon
parentb387e94a1e51510b8042d8bd60f0d36dea4519d2 (diff)
Did that.
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon1
1 files changed, 0 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 8683d4c..4392ea2 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -405,7 +405,6 @@ class NomsuCompiler
-- Returns a single alias ("say %"), and list of args ({msg}) from a single rule def
-- (e.g. "say %msg") or function call (e.g. FunctionCall({Word("say"), Var("msg")))
if type(x) == 'string'
- -- TODO
alias = x\gsub("'"," '")\gsub("%%%S+","%%")\gsub("%s+"," ")
args = [arg for arg in x\gmatch("%%(%S[^%s']*)")]
return alias, args