What are preprocessors?

I’ve always wondered what preprocessors are, while looking through the studio settings, I saw the syntax color highlighting and saw a preprocessor syntax highlighter. I don’t ever encounter in my scripts a purple keyword (preprocessor color). Is preprocessing some sort of advanced feature I am not aware about?

1 Like

Generally a Preprocessor is essentially something (a “program”), that parses simple “commands/directives” and puts a source file into proper form for it to then be feed into a compiler. The Preprocessor Color property which i’m guessing is to referring to the colors of the actual directives themselves, is obsolete. Current versions of Lua do not have any “built-in” pre-processing capabilities and as far as i know Roblox doesn’t implement any either.

So…i don’t think there is really a reason for that property because we can’t even use preprocessor directives anyways. There is already a feature request to remove it from the settings menu too:

1 Like