diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-24 14:57:24 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-24 14:57:35 -0700 |
| commit | 2e345e271f27147051b8ce1f2981ba728b14394a (patch) | |
| tree | 5f56bc1886ed887ad87ffb86b7591fcc5bf09368 /nomsu.lua | |
| parent | ad94ed3653e2b7a9f68855670a32617aa80a637c (diff) | |
Misc changes, fixed up Object lib and tests.
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,8 +28,8 @@ end re = require('re') lpeg = require('lpeg') lpeg.setmaxstack(10000) -local P, R, V, S, Cg, C, Cp, B, Cmt -P, R, V, S, Cg, C, Cp, B, Cmt = lpeg.P, lpeg.R, lpeg.V, lpeg.S, lpeg.Cg, lpeg.C, lpeg.Cp, lpeg.B, lpeg.Cmt +local P, R, V, S, Cg, C, Cp, B +P, R, V, S, Cg, C, Cp, B = lpeg.P, lpeg.R, lpeg.V, lpeg.S, lpeg.Cg, lpeg.C, lpeg.Cp, lpeg.B local utils = require('utils') local new_uuid = require('uuid') local immutable = require('immutable') @@ -1303,7 +1303,7 @@ do stub_defs = { space = (P(' ') + P('\n..')) ^ 0, word = (NOMSU_DEFS.ident_char ^ 1 + NOMSU_DEFS.operator), - varname = (R('az', 'AZ', '09') + P('_') + NOMSU_DEFS.utf8_char) ^ 0 + varname = (R('az', 'AZ', '09') + P('_') + NOMSU_DEFS.utf8_char + (-P("'") * NOMSU_DEFS.operator)) ^ 0 } stub_pattern = re.compile([=[ {~ (%space->'') (('%' (%varname->'')) / %word)? ((%space->' ') (('%' (%varname->'')) / %word))* (%space->'') ~} ]=], stub_defs) |
