Skip to content

Fix normal command double quote bug #9430

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

Merged

Conversation

s-kai273
Copy link
Contributor

@s-kai273 s-kai273 commented Jan 11, 2025

What this PR does / why we need it:

  • Fix normal command double quote bug

Which issue(s) this PR fixes

#9431

Special notes for your reviewer:

s-kai273 and others added 30 commits February 20, 2024 00:52
@@ -113,7 +113,7 @@ const escapedParser = string('\\')
export const keystrokesExpressionParser: Parser<string[]> = alt(
escapedParser,
specialCharacterParser,
noneOf('"'),
regexp(/./),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to the use of noneOf('"'), parsing parameters that contain double quotes fails.
However, I believe that including double quotes is not an invalid case in normal command.

If replacing the original parser with regexp(/./) introduces other issues, please let me know!

Copy link
Member

@J-Fields J-Fields left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@J-Fields J-Fields merged commit 665a066 into VSCodeVim:master May 23, 2025
1 check passed
@s-kai273 s-kai273 deleted the feature/fix_normal_command_double_quote_bug branch May 23, 2025 12:53
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.

2 participants