You can install Lua 5.2 now with "brew install lua"

dgitman at Davids-iMac in ~
$  brew info homebrew/versions/lua52
Error: No available formula for lua52 
Please tap it and then try again: brew tap homebrew/versions

You can install Lua 5.2 now with "brew install lua"