mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 14:17:02 +00:00
9a2fd18425
Previously we were using a function in `editor` to combine syntax highlighting and fuzzy match positions, it would operate on the full text as put into the label. However we now have a method `ranges` on `StringMatch` itself which operates on just the match text. The outline view has some pretty specific behavior around path/normal matches and how they are highlighted. So let's just give the match the full text before it leaves the search function so it can freely index |
||
---|---|---|
.. | ||
syntax_map | ||
buffer.rs | ||
buffer_tests.rs | ||
diagnostic_set.rs | ||
highlight_map.rs | ||
language2.rs | ||
language_settings.rs | ||
markdown.rs | ||
outline.rs | ||
proto.rs | ||
syntax_map.rs |