Use a macroexpander that passes (:locals env) as &env, macros that use (keys &env) can be analyzed.