Skip to content

Fix mm inconsistency with some treesitter grammars#15288

Open
axelcool1234 wants to merge 1 commit intohelix-editor:masterfrom
axelcool1234:find-pair-fix
Open

Fix mm inconsistency with some treesitter grammars#15288
axelcool1234 wants to merge 1 commit intohelix-editor:masterfrom
axelcool1234:find-pair-fix

Conversation

@axelcool1234
Copy link

The following fixes #15287. The change is to simply make the end parameter of descendent_for_byte_range be pos + 1 instead of pos. I believe the culprit commit that lead to this bug was #10613 (before this change it was also pos + 1) but this was a major improvement on how pair matching was implemented so the bug may have existed before this as well.

I am unsure if this leads to any regressions but I doubt it.

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.

Typst treesitter mm inconsistency

1 participant