fix: Don't match nodes of different types #367

Merged
wetneb merged 2 commits from wetneb/mergiraf:assert_grammar_names into main 2025-05-06 04:09:44 +02:00
Owner

The pre-matching of nodes based on merged chunks in line-based merges didn't check that the nodes are of the same type.
This made it possible in certain languages to match a list with its first element, for instance (see the test case).
I haven't encountered a merge scenario where this leads to an undesirable output, but discovered this inconsistency while working on something else.

The pre-matching of nodes based on merged chunks in line-based merges didn't check that the nodes are of the same type. This made it possible in certain languages to match a list with its first element, for instance (see the test case). I haven't encountered a merge scenario where this leads to an undesirable output, but discovered this inconsistency while working on something else.
ada4a approved these changes 2025-05-05 23:17:14 +02:00
wetneb merged commit 2a2c954f91 into main 2025-05-06 04:09:44 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mergiraf/mergiraf#367
No description provided.