As far as I know, there is no syntax for it, but there might very well be conventions (maybe the ones you are using?) in either naming or luadoc or similar to denote this (@britzl?). To check for optionals, I think ‘or’ is commonly used:
function(--[[required]]var1, --[[optional]]var2, --[[optional]]var3)
var2 = var2 or 6 --default value
var3 = var3 or 0 --default value
--Do something with the inputs
end