Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple lined comments do not format properly #3

Open
BoomShotKapow opened this issue Sep 7, 2023 · 0 comments
Open

Multiple lined comments do not format properly #3

BoomShotKapow opened this issue Sep 7, 2023 · 0 comments

Comments

@BoomShotKapow
Copy link

BoomShotKapow commented Sep 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant