diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-03 19:26:41 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-03 19:26:41 -0800 |
| commit | 8cc12625047d7854bfd7ebee2082e69c9cafe566 (patch) | |
| tree | 09c1ff97fa18a6b234dd6ce495a4ad0f193cc2c8 /nomsu.moon | |
| parent | b2ddc1d7687591b4cbc686d274cf3b1f67c3ce1e (diff) | |
Updated examples and made operator characters not stick to each other.
Useful for <%x>=6 properly registering as <%x> = 6.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -756,7 +756,7 @@ end)]])\format(concat(lua_bits, "\n")) -- (e.g. "say %msg") or function call (e.g. FunctionCall({Word("say"), Var("msg"))) if type(x) == 'string' -- Standardize format to stuff separated by spaces - patt = re.compile "{|(' '+ / '\n..' / {'\\'? '%' %id*} / {%id+} / {%op+})*|}", + patt = re.compile "{|(' '+ / '\n..' / {'\\'? '%' %id*} / {%id+} / {%op})*|}", id:IDENT_CHAR, op:OPERATOR_CHAR spec = concat patt\match(x), " " stub = spec\gsub("%%%S+","%%")\gsub("\\","") |
