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.moon | |
| parent | ad94ed3653e2b7a9f68855670a32617aa80a637c (diff) | |
Misc changes, fixed up Object lib and tests.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ if jit re = require 're' lpeg = require 'lpeg' lpeg.setmaxstack 10000 -{:P,:R,:V,:S,:Cg,:C,:Cp,:B,:Cmt} = lpeg +{:P,:R,:V,:S,:Cg,:C,:Cp,:B} = lpeg utils = require 'utils' new_uuid = require 'uuid' immutable = require 'immutable' @@ -285,7 +285,7 @@ class NomsuCompiler 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->'') ~} |
