From 8ad0876f49c3ab044139eb5c006287e7945fdb96 Mon Sep 17 00:00:00 2001 From: Erik Magnusson Date: Thu, 16 Mar 2023 16:47:01 +0100 Subject: [PATCH] add support for every rustdoc annotation --- src/readme/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readme/process.rs b/src/readme/process.rs index b657233..f1bba1a 100644 --- a/src/readme/process.rs +++ b/src/readme/process.rs @@ -10,7 +10,7 @@ use regex::Regex; lazy_static!{ // Is this code block rust? - static ref RE_CODE_RUST: Regex = Regex::new(r"^(?P`{3,4}|~{3,4})(?:rust|(?:(?:rust,)?(?:no_run|ignore|should_panic)))?$").unwrap(); + static ref RE_CODE_RUST: Regex = Regex::new(r"^(?P`{3,4}|~{3,4})(?:rust|(?:(?:rust,)?(?:should_panic|should-panic|shouldpanic|no_run|no-run|norun|ignore|ignore-.*|test_harness|test-harness|testharness|compile_fail|compile-fail|compilefail|edition....|E....)))?$").unwrap(); // Is this code block just text? static ref RE_CODE_TEXT: Regex = Regex::new(r"^(?P`{3,4}|~{3,4})text$").unwrap(); // Is this code block a language other than rust?