Javascript levlels bug: reproduction with workaround



  • Having ‘{’ immediately after ‘//’ for comments will break folding/collapsing levels logic.

    Release: Notepad++ V7.7

    Reproduction:

    //Collapsing level 2 will also collapse level 1
    { //Level 1
    { //Level 2
    //{ No space before ‘{’
    {}
    }
    }

    Workaround:

    //With a space ’ ’ before ‘{}’ in the comment, Level 2 collapses properly
    { //Level 1
    { //Level 2
    // { Has space before ‘{’
    {}
    }
    }


Log in to reply