From be55821244bfa066e150d33490445a16d31d92b9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 14 Sep 2017 05:14:28 -0700 Subject: Fixed invocation function to canonicalize better and play nice with "'" --- nomsu.moon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nomsu.moon') diff --git a/nomsu.moon b/nomsu.moon index 5bd2dfa..5626b59 100755 --- a/nomsu.moon +++ b/nomsu.moon @@ -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)) -- cgit v1.2.3