From 8cc12625047d7854bfd7ebee2082e69c9cafe566 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 3 Jan 2018 19:26:41 -0800 Subject: Updated examples and made operator characters not stick to each other. Useful for <%x>=6 properly registering as <%x> = 6. --- nomsu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index d902f61..44b2fb0 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -1114,7 +1114,7 @@ end)]]):format(concat(lua_bits, "\n")) self:error("Nothing to get stub from") end if type(x) == 'string' then - local patt = re.compile("{|(' '+ / '\n..' / {'\\'? '%' %id*} / {%id+} / {%op+})*|}", { + local patt = re.compile("{|(' '+ / '\n..' / {'\\'? '%' %id*} / {%id+} / {%op})*|}", { id = IDENT_CHAR, op = OPERATOR_CHAR }) -- cgit v1.2.3