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

C lang: incorrect folding caused by trailing comments #823

Open
lifenjoiner opened this issue Jul 20, 2024 · 1 comment
Open

C lang: incorrect folding caused by trailing comments #823

lifenjoiner opened this issue Jul 20, 2024 · 1 comment

Comments

@lifenjoiner
Copy link
Contributor

v24.07r5332 ba5c8a8
Screenshot:
incorrect-folding

struct cmdline_option option_data[] =
{
    { "proxy", 0, OPT_BOOLEAN, "useproxy", -1 },
    { "proxy__compat", 'Y', OPT_VALUE, "useproxy", -1 }, /* back-compatible */
    { "proxy-passwd", 0, OPT_VALUE, "proxypassword", -1 },
    { "proxy-password", 0, OPT_VALUE, "proxypassword", -1 },
    { "proxy-user", 0, OPT_VALUE, "proxyuser", -1 }, // sth
    { "quiet", 'q', OPT_BOOLEAN, "quiet", -1 },
    { "verbose", 'v', OPT_BOOLEAN, "verbose", -1 },
    // c2
    { "verbose", 'v', OPT_BOOLEAN, "verbose", -1 },
    /* c3 */
    { "verbose", 'v', OPT_BOOLEAN, "verbose", -1 },
};
@zufuliu
Copy link
Owner

zufuliu commented Jul 20, 2024

Not a big bug, code folding code for LexCPP is hard to modify at the moment.
image

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

No branches or pull requests

2 participants