-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels