diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-14 05:14:28 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-14 05:14:28 -0700 |
| commit | be55821244bfa066e150d33490445a16d31d92b9 (patch) | |
| tree | f2ad0c155aabf9f1304dabaa1a402bafcef8d4de /nomsu.moon | |
| parent | e8dd820b8c0572be9a2a99b4c3409678ac850575 (diff) | |
Fixed invocation function to canonicalize better and play nice with "'"
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -138,8 +138,8 @@ class NomsuCompiler invocations = {} local arg_names for _text in *text - invocation = _text\gsub("%%%S+","%%") - _arg_names = [arg for arg in _text\gmatch("%%(%S+)")] + invocation = _text\gsub("'"," '")\gsub("%%%S+","%%")\gsub("%s+"," ") + _arg_names = [arg for arg in _text\gmatch("%%(%S[^%s']*)")] table.insert(invocations, invocation) if arg_names if not utils.equivalent(utils.set(arg_names), utils.set(_arg_names)) |
