diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-08 13:00:08 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-08 13:00:08 +0100 |
commit | 8ea7c9cb62aaef468c9ff1483e109329d2d5fccd (patch) | |
tree | c5de9cc1c1b941651454a9c67757da9eb0e754e8 /crates/ra_mbe/src/mbe_expander/matcher.rs | |
parent | 9aa3bca53626a76657ecf5f59c431dcd3f7a8085 (diff) | |
parent | bf96d46fee1242ad701cb037a03c9575e84221b1 (diff) |
Merge #3826
3826: Flatten nested highlight ranges during DFS traversal r=matklad a=ltentrup
Implements the flattening of nested highlights from #3447.
There is a caveat: I needed to add `Clone` to `HighlightedRange` to split highlight ranges ~and the nesting does not appear in the syntax highlighting test (it does appear in the accidental-quadratic test but there it is not checked against a ground-truth)~.
I have added a test case for the example mentioned in #3447.
Co-authored-by: Leander Tentrup <[email protected]>
Diffstat (limited to 'crates/ra_mbe/src/mbe_expander/matcher.rs')
0 files changed, 0 insertions, 0 deletions