Skip to content

Doesn't understand nested ifs #2

Open
@Gaming32

Description

@Gaming32

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions