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

Improve Pair Matching Logic to Skip Parentheses Inside Strings #9370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ampersand-1
Copy link

What this PR does / why we need it:

This PR updates the logic behind parentheses pair matching. Currently, the logic does not ignore parentheses within quotations (i.e. "" or ''). As a result, this leads to incorrect jump behaviour when users expect to skip parentheses within strings rather than treating them as matching pairs. This also consistent with Vim's actual logic.

Current behaviour (using the % command to jump to the next matching pair):

current.mov

Fixed behaviour:

after.mov

Vim's actual behaviour:

vim.mov

Which issue(s) this PR fixes
Addresses: #9344

Special notes for your reviewer:

linting

removed pairing for grave accent
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

Successfully merging this pull request may close these issues.

1 participant