IntelliProcessor
IntelliProcessor copied to clipboard
An IntelliJ plugin to add support for the ReplayMod preprocessor syntax
Something like `//$$"1.14.4"` gets highlighted like so:  I think that " should not be highlighted.
When inserting a new line like so: ```kt //$$ fun onInitialize() {} ``` there are no new $$s on the next line after pressing enter: ```kt //$$ fun onInitialize() {...
Having IntelliProcessor enabled breaks Optimize Imports, even in projects without the preprocessor.
Sometimes, especially in imports, `#if` directives may be nested. Example: ```java //#if FABRIC import net.fabricmc.api.ClientModInitializer; import net.fabricmc.loader.api.FabricLoader; //#if MC >= 1.18.2 import dev.isxander.mainmenucredits.MainMenuCredits; import dev.isxander.mainmenucredits.config.MMCConfig; import dev.isxander.mainmenucredits.config.MMCConfigEntry; import io.github.gaming32.worldhost.gui.OnlineStatusLocation; //#endif...
> Side-note: An action to jump to the first version where a given line becomes active would be neat to have. Although potentially difficult to implement because it needs to...
Attempting to trigger "Optimize Imports" in the following file triggers a StackOverflowError and IntelliProcessor seems to be the culprit. The weird thing is the project isn't even using Preprocessor. https://github.com/lunaynx/Skyblocker/blob/ce60fef533e82ea3ec8118fd68936d8dad5c5fda/src/main/java/de/hysky/skyblocker/mixins/CactusBlockMixin.java...