Skip to content

Commit 60203e7

Browse files
committed
Frontmatter removal: update the form of wording for match attempts
This is the form of words that pegs.md advertises
1 parent 1ade61d commit 60203e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

writeup/before_tokenising.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ If shebang removal is performed:
5757
> Under stable rustc 1.90, and under nightly rustc without the `frontmatter` feature flag,
5858
> input which would undergo frontmatter removal is rejected.
5959
60-
If the `FRONTMATTER` nonterminal defined in the frontmatter grammar matches at the start of the remaining sequence,
60+
If an attempt to match the `FRONTMATTER` nonterminal defined in the frontmatter grammar against the remaining sequence succeeds,
6161
the characters consumed by that match are removed from the sequence.
6262

63-
Otherwise, if the `RESERVED` nonterminal defined in the frontmatter grammar matches at the start of the remaining sequence,
63+
Otherwise, if an attempt to match the `RESERVED` nonterminal defined in the frontmatter grammar against the remaining sequence succeeds,
6464
the input is rejected.
6565

6666
The frontmatter grammar is the following [Parsing Expression Grammar](pegs.md):

0 commit comments

Comments
 (0)