File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -931,7 +931,10 @@ crate fn rust_code_blocks(md: &str) -> Vec<RustCodeBlock> {
931931 is_fenced = true ;
932932 previous_offset + fence_idx
933933 }
934- None => offset,
934+ None => {
935+ is_fenced = false ;
936+ offset
937+ }
935938 } ;
936939 }
937940 }
Original file line number Diff line number Diff line change @@ -74,3 +74,11 @@ pub fn empty_rust() {}
7474///
7575/// ```
7676pub fn empty_rust_with_whitespace ( ) { }
77+
78+ /// ```
79+ /// let x = 1;
80+ /// ```
81+ ///
82+ /// \____/
83+ ///
84+ pub fn indent_after_fenced ( ) { }
Original file line number Diff line number Diff line change @@ -201,6 +201,24 @@ help: mark blocks that do not contain Rust code as text
201201LL | /// ```text
202202 | ^^^^^^^
203203
204+ error: unknown start of token: \
205+ --> <doctest>:1:1
206+ |
207+ 1 | \____/
208+ | ^
209+
210+ warning: could not parse code block as Rust code
211+ --> $DIR/invalid-syntax.rs:82:9
212+ |
213+ LL | /// \____/
214+ | ^^^^^^
215+
216+ error: unknown start of token: \
217+ --> <rustdoc-highlighting>:1:1
218+ |
219+ 1 | \____/
220+ | ^
221+
204222error: unknown start of token: \
205223 --> <rustdoc-highlighting>:1:1
206224 |
You can’t perform that action at this time.
0 commit comments