Skip to content

Commit 34088c1

Browse files
authored
Merge pull request #1566 from rust-lang/senekor/kyyquounzmms
Suppress warnings for ```text code blocks
2 parents 4bb191c + 2dd1a02 commit 34088c1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Diff for: config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ highlight_code = true
1111
highlight_theme = "boron"
1212
bottom_footnotes = true
1313
insert_anchor_links = "left"
14+
extra_syntaxes_and_themes = ["syntaxes"]
1415

1516
[extra]
1617
# Put all your custom variables here

Diff for: syntaxes/custom_plain_text.sublime-syntax

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
%YAML 1.2
2+
---
3+
name: Plain Text
4+
file_extensions: [text]
5+
scope: text.plain
6+
7+
# This custom syntax for plain text only exists so we can match against ```text
8+
# code blocks, which are common in rustdoc. By default, only ```txt is supported
9+
# by Zola. Without this file, `zola build` would print spurious warnings.
10+
11+
contexts:
12+
main:
13+
- match: whatever
14+
scope: text.plain

0 commit comments

Comments
 (0)