Doesn't understand nested ifs
Opened this issue · 1 comments
Gaming32 commented
Sometimes, especially in imports, #if
directives may be nested.
Example:
//#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
//#else
...
Currently this plugin does not fold this, and may even display weird errors regarding mismatched #endif
directives, despite them not being mismatched.
pauliesnug commented
Hm... I'll look into this as its been reported once before