Did that.

This commit is contained in:
Bruce Hill 2017-09-22 00:05:54 -07:00
parent b387e94a1e
commit 03b4b0ea9c

View File

@ -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