Skip to content

Multiple lined comments do not format properly #3

@BoomShotKapow

Description

@BoomShotKapow
static char gS_MapPrefixes[GameMode_Size][][] =
{
    { "bhop",       "kz_bhop",  "bhop_kz" }, //GameMode_Bhop
	{ "kz",         "xc",       ""        }, //GameMode_Kreedz
	{ "surf",       "",         ""        }, //GameMode_Surf
	{ "deathrun",   "dr",       ""        }  //GameMode_Deathrun
};

It will incorrectly format into:

static char gS_MapPrefixes[GameMode_Size][][] = { { "bhop", "kz_bhop", "bhop_kz" }, //GameMode_Bhop{ "kz", "xc", "" }, //GameMode_Kreedz{ "surf", "", "" }, //GameMode_Surf{ "deathrun", "dr", "" }//GameMode_Deathrun };
                                                                                  ^
                                                                                  |
                                                                                  | notice that the rest of the code is in the comment

Capture

Maybe include something that the user can do to mark out sections of the code that it shouldn't format?

For example:

//@formatter:off
static char gS_MapPrefixes[GameMode_Size][][] =
{
    { "bhop",       "kz_bhop",  "bhop_kz" }, //GameMode_Bhop
	{ "kz",         "xc",       ""        }, //GameMode_Kreedz
	{ "surf",       "",         ""        }, //GameMode_Surf
	{ "deathrun",   "dr",       ""        }  //GameMode_Deathrun
};
//@formatter:on

Thank you and let me know if you need anything else from me related to this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions