There isn't anything to fix, that's how it works in RenPy.
The way shaders are registered in RenPy is that the GLSL is passed as a string through the register shader functions. I record them into variables and then use string concatenation to register the shaders so the registration statements themselves aren't 50-100 lines long. If you scroll down, you'll see the registration statements accepting those variables.