diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-27 18:28:23 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-27 18:29:23 -0700 |
| commit | 2e15c0fd5067318601e2f3b70ee6fc16ef58200d (patch) | |
| tree | 0006e0825b2680d457bb531c3d079661b16d6bc8 /code_obj.moon | |
| parent | 6ce32bdd25694d71dc232c50a008f8824f8a75ce (diff) | |
Some tweaks/cleanup on the nomsu code as well as adding variable
mangling to 'parse % as %' to make almost hygienic macros.
Diffstat (limited to 'code_obj.moon')
| -rw-r--r-- | code_obj.moon | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/code_obj.moon b/code_obj.moon index 14bc74a..d764430 100644 --- a/code_obj.moon +++ b/code_obj.moon @@ -9,6 +9,7 @@ Source = immutable {"filename","start","stop"}, { if not start start, stop = 1, #FILE_CACHE[filename] if stop then assert(start <= stop+1, "Invalid range: #{start}, #{stop}") + else error("HUH?") return filename, start, stop from_string: (str)=> filename,start,stop = str\match("^(.-)%[(%d+):(%d+)%]$") |
