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

🔥 Remove IndexMap.merge #1486

Merged
merged 4 commits into from
Jul 8, 2024
Merged

Conversation

misode
Copy link
Member

@misode misode commented Jul 7, 2024

This fix likely makes the string parser a lot slower, because it needs to compute the outer cursor for every character. There is likely a more efficient way of combining the relevant index map pairs of the src indexMap, but that seems tricky to implement.

@misode misode marked this pull request as ready for review July 7, 2024 19:31
@misode
Copy link
Member Author

misode commented Jul 7, 2024

image

@TheAfroOfDoom
Copy link
Contributor

because it needs to compute the outer cursor for every character.

this was also my expected solution, given a cleaner IndexMap.merge method not yet existing

@misode misode merged commit 1234d6d into SpyglassMC:main Jul 8, 2024
3 checks passed
@misode misode deleted the fix-index-map-mixed-quotes branch July 8, 2024 14:01
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.

Index map issue with nested strings
2 participants