fix: enable auto-sort in Decoration.set avoiding not-in-order omitted delim set

This happens when a token was nested within another token. So, the closing delimiter of the nested within is ahead of both delimiters of the nested one (That closing should be the last in order).
This commit is contained in:
kotaindah55 2025-03-07 02:15:55 +02:00
parent 53a1b1f593
commit c56777cf42

View file

@ -68,6 +68,6 @@ export class DelimOmitter {
}
}
}
return Decoration.set(omittedRanges);
return Decoration.set(omittedRanges, true);
}
}