You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidfoo() { // this bracketinta=3;
if (a=='}') { // matches the literal '}' here
}
}
voidbar() {
char*b="hello";
if (b=="}") {
}
}
In this example, in the first function the brackets enclosing the function is mismatched with a literal '}'.
In the second function I confirm that only character '{' is matched, strings like "{" are not.
What vim version are you using? If using neovim, Are you using
tree-sitter or classic matching?
NVIM v0.10.0-dev-2063+ga767c046f
I have treesitter integration by setting
But I can confirm that with or without TS integrated the bug is the same.
2. Steps to reproduce
Simply create a C/C++ header or source file and paste in the code above. The wrong pair of brackets are highlighted.
4. Expected behavior
String or character literals should not be mismatched.
6. Observed behavior
The text was updated successfully, but these errors were encountered:
Explain the issue
In this example, in the first function the brackets enclosing the function is mismatched with a literal
'}'
.In the second function I confirm that only character
'{'
is matched, strings like"{"
are not.tree-sitter or classic matching?
NVIM v0.10.0-dev-2063+ga767c046f
I have treesitter integration by setting
But I can confirm that with or without TS integrated the bug is the same.
2. Steps to reproduce
Simply create a C/C++ header or source file and paste in the code above. The wrong pair of brackets are highlighted.
4. Expected behavior
String or character literals should not be mismatched.
6. Observed behavior
The text was updated successfully, but these errors were encountered: