rust/crates/ra_ide/src
bors[bot] 8ea7c9cb62
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 <leander.tentrup@gmail.com>
2020-04-08 12:00:08 +00:00
..
completion Move computation of missing fields into hir 2020-04-07 18:34:17 +02:00
display Fix unnecessary braces warnings 2020-04-06 17:21:33 +03:00
references Add test 2020-03-22 19:53:34 +08:00
snapshots Simplify HTML highlighter and add test case for highlight_injection logic 2020-04-06 23:00:09 +02:00
syntax_highlighting Merge #3826 2020-04-08 12:00:08 +00:00
typing Continue multiline non-doc comment blocks 2020-03-11 12:58:16 +01:00
assists.rs
call_hierarchy.rs
call_info.rs Fix unnecessary braces warnings 2020-04-06 17:21:33 +03:00
completion.rs Better naming for scope completion 2020-04-07 13:20:41 +02:00
diagnostics.rs missing match arms diagnostic 2020-04-07 05:12:08 -07:00
display.rs Remove some unwraps 2020-03-28 12:27:54 +01:00
expand_macro.rs Generalise syntax rewriting infrastructure to allow removal of nodes 2020-03-24 17:14:33 +01:00
extend_selection.rs
folding_ranges.rs
goto_definition.rs Always expand macros during analysis 2020-03-25 13:53:15 +01:00
goto_type_definition.rs Fix unnecessary braces warnings 2020-04-06 17:21:33 +03:00
hover.rs Remove dat fixme 2020-03-16 14:13:50 +02:00
impls.rs Rename ast::ImplBlock -> ast::ImplDef 2020-02-29 21:33:15 +01:00
inlay_hints.rs Don't show chaining hints for record literals and unit structs 2020-04-01 13:14:41 +03:00
join_lines.rs
lib.rs Check for eprintln on CI 2020-04-06 17:00:18 +02:00
marks.rs Don't insert !() if there's already some 2020-04-07 16:37:33 +02:00
matching_brace.rs
mock_analysis.rs Add ProcMacroClient 2020-03-26 03:29:45 +08:00
parent_module.rs Add ProcMacroClient 2020-03-26 03:29:45 +08:00
prime_caches.rs Prime open files on load 2020-03-05 13:40:53 +01:00
references.rs Improve find_all_ref work inside macro 2020-03-22 19:53:28 +08:00
runnables.rs Fix unnecessary braces warnings 2020-04-06 17:21:33 +03:00
source_change.rs
ssr.rs Adds to SSR match for semantically equivalent call and method call 2020-04-02 20:18:44 +01:00
status.rs
syntax_highlighting.rs Merge #3826 2020-04-08 12:00:08 +00:00
syntax_tree.rs Remove some TextUnit->usize escapees 2020-03-12 22:33:27 -04:00
test_utils.rs
typing.rs Simplify tests 2020-03-13 18:00:23 +01:00