diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-10-31 03:51:37 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-10-31 03:52:00 -0700 |
| commit | 83219f8522271ae4f278abc5687921cc8267bb33 (patch) | |
| tree | 17ad8aa28d94d5442fac990cf3a0fae204d90850 /files.lua | |
| parent | ea3197aaffba00318920ed5e1e33ca5f2a5e6c5c (diff) | |
Bumped version number, fixed REPL, and simplified/fixed (use %).
Diffstat (limited to 'files.lua')
| -rw-r--r-- | files.lua | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -191,20 +191,18 @@ Files.walk = function(path, flush_cache) end end end - local iter - iter = function(files, i) - if not (files) then - return - end - i = i + 1 - do - local f = files[i] - if f then - return i, f - end + files = files or { } + do + local _accum_0 = { } + local _len_0 = 1 + for _index_0 = 1, #files do + local f = files[_index_0] + _accum_0[_len_0] = gsub(f, "^%./", "") + _len_0 = _len_0 + 1 end + files = _accum_0 end - return iter, files, 0 + return ipairs(files) end local line_counter = re.compile([[ lines <- {| line (%nl line)* |} line <- {} (!%nl .)* |
