luna-core 2.11.0

Pure-Rust Lua runtime (interpreter only, zero third-party dependencies). The JIT-equipped variant lives in the `luna-jit` crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
-- v2.11 CORPUS-II: string.find with captures returns start, end, cap1, cap2..
local s, e, cap1, cap2 = string.find("hello 42 world", "(%a+) (%d+)")
print(s, e, cap1, cap2)

-- init position
local s2, e2 = string.find("abcabc", "abc", 2)
print(s2, e2)

-- plain=true
print(string.find("a.b.c", ".", 1, true))
print(string.find("a.b.c", ".", 1))  -- pattern: any char