Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions util/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from lintlib import parse_all, log

lint_subheadline = re.compile(r'''^\*\*([\w\s]+?)[:?.!]?\*\*(.*)''')
rust_code_block = re.compile(r'''```rust.+?```''', flags=re.DOTALL)
rust_code_block = re.compile(r'''```(rust|no_run).+?```''', flags=re.DOTALL)

CONF_TEMPLATE = """\
This lint has the following configuration variables:
Expand All @@ -23,7 +23,7 @@ def parse_code_block(match):

for line in match.group(0).split('\n'):
# fix syntax highlighting for headers like ```rust,ignore
if line.startswith('```rust'):
if line.startswith('```rust') or line.startswith('```no_run'):
lines.append('```rust')
elif not line.startswith('# '):
lines.append(line)
Expand Down