wraith13 / bracket-lens-vscode

Show bracket head on closing bracket for VS Code.
https://marketplace.visualstudio.com/items?itemName=wraith13.bracket-lens
Boost Software License 1.0
50 stars 7 forks source link

Detection with newlines in C++ #9

Open nvdl opened 3 years ago

nvdl commented 3 years ago

The markers are not correct for (lines can broken if they are long and "clang-format" is used):

if (c1) {
    for (a :
         b) {
        if (c2) {
        } else {
        }
    }
}

But they are OK for:

if (c1) {
    for (a : b) {
        if (c2) {
        } else {
        }
    }
}
wraith13 commented 3 years ago

I understand what you mean. I may take some improvements in the future, but please think of it as such a specification at now.