Skip to content

Commit f3c41e0

Browse files
committed
fix sembr tool corner case
1 parent 5a385ef commit f3c41e0

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

ci/sembr/src/main.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ fn ignore(line: &str, in_code_block: bool) -> bool {
8383
|| line.contains(" etc.")
8484
|| line.contains("i.e.")
8585
|| line.contains("et. al")
86-
|| line.contains("<!-- date-check ")
86+
|| line.contains("<!--")
87+
|| line.contains("-->")
8788
|| line.contains('|')
8889
|| line.trim_start().starts_with('>')
8990
|| line.starts_with('#')
@@ -266,6 +267,11 @@ leave the
266267
text alone
267268
```
268269
270+
<!-- ignore
271+
html comment opening
272+
--> ignore
273+
html comment closing
274+
269275
handle the
270276
indented well
271277
@@ -292,6 +298,11 @@ leave the
292298
text alone
293299
```
294300
301+
<!-- ignore
302+
html comment opening
303+
--> ignore
304+
html comment closing
305+
295306
handle the indented well
296307
297308
[a target]: https://example.com

src/rustdoc-internals/rustdoc-json-test-suite.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Each crate's json output is checked by 2 programs: [jsondoclint](#jsondocck) and
1818
This makes sure there are no dangling [`Id`]s.
1919

2020
<!-- TODO: It does some more things too?
21-
Also, talk about how it works -->
21+
Also, talk about how it works
22+
-->
2223

2324
## jsondocck
2425

0 commit comments

Comments
 (0)