1
Fork 0

Add support for double quotes in markdown codeblock attributes

This commit is contained in:
Guillaume Gomez 2023-04-27 15:09:43 +02:00
parent d829fee6b5
commit 4ce17fa30e
5 changed files with 145 additions and 49 deletions

View file

@ -0,0 +1,33 @@
error: unclosed quote string: missing `"` at the end
--> $DIR/custom_code_classes_in_docs-warning3.rs:9:1
|
LL | / /// ```{class="}
LL | | /// main;
LL | | /// ```
LL | |
... |
LL | | /// main;
LL | | /// ```
| |_______^
|
note: the lint level is defined here
--> $DIR/custom_code_classes_in_docs-warning3.rs:5:9
|
LL | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(warnings)]`
error: unclosed quote string: missing `"` at the end
--> $DIR/custom_code_classes_in_docs-warning3.rs:9:1
|
LL | / /// ```{class="}
LL | | /// main;
LL | | /// ```
LL | |
... |
LL | | /// main;
LL | | /// ```
| |_______^
error: aborting due to 2 previous errors