Skip to content

Make token removal range less aggressive #1564

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
merged 5 commits into from
Jul 6, 2023
Merged

Make token removal range less aggressive #1564

merged 5 commits into from
Jul 6, 2023

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Jul 2, 2023

Fixes #1077

Checklist

@AndreasArvidsson AndreasArvidsson requested a review from pokey as a code owner July 2, 2023 21:12
Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

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

🙌

Comment on lines +6 to +7
const leadingDelimiters = ['"', "'", "(", "[", "{", "<"];
const trailingDelimiters = ['"', "'", ")", "]", "}", ">", ",", ";", ":"];
Copy link
Member

Choose a reason for hiding this comment

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

Filed #1590 to track determining opening / closing properly. What you have here is strictly better than what we do today, so I'm fine with it

@pokey pokey enabled auto-merge July 6, 2023 18:21
@pokey pokey added this pull request to the merge queue Jul 6, 2023
Merged via the queue into main with commit b1f084e Jul 6, 2023
@pokey pokey deleted the token-removal-range branch July 6, 2023 18:47
@pokey pokey added the bug Something isn't working label Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to less aggressive whitespace removal for tokens
2 participants