diff options
| author | Michael Forney <mforney@mforney.org> | 2020-05-09 23:59:31 +0000 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-05-10 02:15:55 -0700 |
| commit | 2dfb6db8071bb9c7c0fe24f7f30568e2ff745669 (patch) | |
| tree | 87abe0e949949b4e9ba9d037160f9e28a8245382 /ninja.lua | |
| parent | 1f24c29f1916fb234bbfbb311c5fcb38cfb28c00 (diff) | |
Lua 5.1 compatibility
Diffstat (limited to 'ninja.lua')
| -rw-r--r-- | ninja.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -75,8 +75,8 @@ local function pathsgen(s, i) local results = {} local first = not i while true do - i = s:find('%g', i) - local _, j, arch = s:find('^@([^%s()]*)%s*%g?', i) + i = s:find('[^%s]', i) + local _, j, arch = s:find('^@([^%s()]*)%s*[^%s]?', i) if arch then i = j end if not i or s:sub(i, i) == ')' then break |
