rust/crates/rust-analyzer/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
..
bin Accept relative paths in rust-project.json 2020-06-15 13:11:53 +02:00
cli New VFS 2020-06-23 17:51:06 +02:00
diagnostics Warnings as hint or info 2020-06-17 00:00:43 +02:00
main_loop Slightly better name 2020-06-23 21:29:50 +02:00
caps.rs Spec better runnables 2020-06-02 17:34:18 +02:00
cargo_target_spec.rs New VFS 2020-06-23 17:51:06 +02:00
cli.rs Make some stuff public so that they can be reused by other tools 2020-05-14 11:14:46 +02:00
config.rs Add Go to Type Definition hover action. 2020-06-18 10:15:43 +03:00
diagnostics.rs Warnings as hint or info 2020-06-17 00:00:43 +02:00
from_proto.rs New VFS 2020-06-23 17:51:06 +02:00
global_state.rs New VFS 2020-06-23 17:51:06 +02:00
lib.rs New VFS 2020-06-23 17:51:06 +02:00
line_endings.rs New VFS 2020-06-23 17:51:06 +02:00
lsp_ext.rs Add capabilities tests. 2020-06-05 15:00:31 +03:00
main_loop.rs New VFS 2020-06-23 17:51:06 +02:00
markdown.rs Rename folder 2020-02-18 12:37:45 +01:00
semantic_tokens.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
to_proto.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