allow captures in lua patterns