Skip to content

Should add a toggle for highlighting of code inside doc comments #248

Open
@mandeep

Description

@mandeep

rust-vim version: master branch

I recently updated rust.vim to the master branch and noticed that examples in doc comments are no longer considered doc comments. Take the following example:

/// Bresenham's algorithm: Draw a line in the given color from (x0, y0) to (x1, y1)
///
/// # Examples
///
/// ```
/// let mut buffer = image::ImageBuffer::new(1921, 1081);
///
/// draw_line(0, 0, 1920, 1080, &mut buffer, image::Rgb([255, 255, 255]))
/// ```
///

The lines between the first ``` and last ``` are not highlighted as doc comments. Instead they are shown as normal rust code.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions