mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Formatting.
This commit is contained in:
parent
4833972067
commit
273d2f9123
2 changed files with 22 additions and 4 deletions
|
@ -54,8 +54,17 @@ pub(super) fn highlight_injection(
|
|||
type RangesMap = BTreeMap<TextSize, TextSize>;
|
||||
|
||||
const RUSTDOC_FENCE: &'static str = "```";
|
||||
const RUSTDOC_FENCE_TOKENS: &[&'static str] =
|
||||
&["", "rust", "should_panic", "ignore", "no_run", "compile_fail", "edition2015", "edition2018", "edition2021"];
|
||||
const RUSTDOC_FENCE_TOKENS: &[&'static str] = &[
|
||||
"",
|
||||
"rust",
|
||||
"should_panic",
|
||||
"ignore",
|
||||
"no_run",
|
||||
"compile_fail",
|
||||
"edition2015",
|
||||
"edition2018",
|
||||
"edition2021",
|
||||
];
|
||||
|
||||
/// Extracts Rust code from documentation comments as well as a mapping from
|
||||
/// the extracted source code back to the original source ranges.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue