IntelliProcessor icon indicating copy to clipboard operation
IntelliProcessor copied to clipboard

Doesn't understand nested ifs

Open Gaming32 opened this issue 1 year ago • 1 comments

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.

Gaming32 avatar May 08 '24 21:05 Gaming32

Hm... I'll look into this as its been reported once before

pauliesnug avatar May 09 '24 01:05 pauliesnug