rust-analyzer/crates/ra_ide/src
bors[bot] c544f9a137
Merge #4940
4940: Add support for marking doctest items as distinct from normal code r=ltentrup a=Nashenas88

This adds `HighlightTag::Generic | HighlightModifier::Injected` as the default highlight for all elements within a doctest. Please feel free to suggest that a new tag be created or a different one used.

![Screenshot from 2020-06-23 09-18-13](https://user-images.githubusercontent.com/1673130/85408493-9752ce00-b532-11ea-94fe-197353ccc778.png)

Fixes #4929 
Fixes #4939

Co-authored-by: Paul Daniel Faria <Nashenas88@users.noreply.github.com>
Co-authored-by: Paul Daniel Faria <nashenas88@users.noreply.github.com>
2020-06-24 05:22:23 +00:00
..
completion More principled indentation trimming in fixtures 2020-06-23 23:33:41 +02:00
display Slightly better name 2020-06-23 21:29:50 +02:00
references New VFS 2020-06-23 17:51:06 +02:00
snapshots Update injection mechanism and stop injecting through highlight element, switch to more general new highlight tag, generic 2020-06-23 12:13:50 -04:00
syntax_highlighting Update injection mechanism and stop injecting through highlight element, switch to more general new highlight tag, generic 2020-06-23 12:13:50 -04:00
typing Less rust-analyzer specific onEnter 2020-05-25 14:28:47 +02:00
call_hierarchy.rs More principled indentation trimming in fixtures 2020-06-23 23:33:41 +02:00
call_info.rs Switch to new magic marks 2020-05-20 13:02:53 +02:00
completion.rs Merge branch 'master' into keyword_completion 2020-06-13 08:42:15 +02:00
diagnostics.rs More principled indentation trimming in fixtures 2020-06-23 23:33:41 +02:00
display.rs Hover tooltip module name is monospace once again 2020-05-25 23:18:45 -04:00
expand_macro.rs Doc more features 2020-05-31 10:14:36 +02:00
extend_selection.rs Don't require module docs for Features and Assists 2020-05-31 09:59:38 +02:00
folding_ranges.rs Introduce EffectExpr 2020-05-02 11:21:39 +02:00
goto_definition.rs More principled indentation trimming in fixtures 2020-06-23 23:33:41 +02:00
goto_implementation.rs Don't require module docs for Features and Assists 2020-05-31 09:59:38 +02:00
goto_type_definition.rs Don't require module docs for Features and Assists 2020-05-31 09:59:38 +02:00
hover.rs More principled indentation trimming in fixtures 2020-06-23 23:33:41 +02:00
inlay_hints.rs Fix type parameter defaults 2020-06-05 20:09:13 +02:00
join_lines.rs Don't require module docs for Features and Assists 2020-05-31 09:59:38 +02:00
lib.rs Update injection mechanism and stop injecting through highlight element, switch to more general new highlight tag, generic 2020-06-23 12:13:50 -04:00
matching_brace.rs Don't require module docs for Features and Assists 2020-05-31 09:59:38 +02:00
mock_analysis.rs Cut problematic dependency 2020-06-23 18:56:26 +02:00
parent_module.rs New VFS 2020-06-23 17:51:06 +02:00
prime_caches.rs Update injection mechanism and stop injecting through highlight element, switch to more general new highlight tag, generic 2020-06-23 12:13:50 -04:00
references.rs More principled indentation trimming in fixtures 2020-06-23 23:33:41 +02:00
runnables.rs More principled indentation trimming in fixtures 2020-06-23 23:33:41 +02:00
ssr.rs New VFS 2020-06-23 17:51:06 +02:00
status.rs Remove special casing for library symbols 2020-06-18 08:29:34 +02:00
syntax_highlighting.rs Improve readability be replacing hard-to-read if-else branches with a match 2020-06-23 19:35:09 -04:00
syntax_tree.rs Move the rest of the features to generated docs 2020-05-31 11:29:19 +02:00
typing.rs Indent chain . even if there's more stuff afterwards 2020-06-11 17:13:24 +02:00