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

% matches with commented out { in c++ file #2958

Open
2 tasks
byteweevil opened this issue Feb 15, 2022 · 1 comment
Open
2 tasks

% matches with commented out { in c++ file #2958

byteweevil opened this issue Feb 15, 2022 · 1 comment

Comments

@byteweevil
Copy link

Describe the bug
In a c++ file using % to navigate through If else when there is a comment that has a } character vsVim will incorrectly match this line .

To Reproduce
Steps to reproduce the behavior:

If (obtuse)
{
// lots of code
}
else
{ // should be here
// comment with } match here <<<<
} // vsVim % |

Expected behavior
I would expect the } in the comment to be ignored.

Screenshots
image

Environment (please complete the following information):

  • Visual Studio version: 2019
  • VsVim version: 2.8.0.0
  • Programming Language: c++
  • Check(Type 'x') any that are installed:
    • ReSharper
    • Visual Assist

Additional context
Add any other context about the problem here.

Note:
The following is written about contributing.
https://github.com/VsVim/VsVim/blob/master/CONTRIBUTING.md

General Keyboard configuration problems are described below.
#2527

@byteweevil
Copy link
Author

Well I guess it's supposed to do that, because my gvim does the same thing! Who in there right mind would comment out only one curly brace anyway.

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

No branches or pull requests

1 participant