Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels