No. Adding one to the Nim compiler isn't pretty straight-forward but we don't accept such pull requests. Source code filters predate Nim's macro system iirc, you're supposed to use Nim macro system instead. Having said that, source code filters are suprisingly popular. :-)