zufuliu / notepad4

Notepad4 (Notepad2⨯2, Notepad2++) is a light-weight Scintilla based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for many programming languages and documents, bundled with file browser plugin matepath.
Other
2.59k stars 184 forks source link

C lang: incorrect folding caused by trailing comments #823

Open lifenjoiner opened 1 month ago

lifenjoiner commented 1 month ago

v24.07r5332 ba5c8a8b 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 commented 1 month ago

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