Skip to content

Commit bd249e3

Browse files
committed
Update some comments for the switch to Pest silent rules
1 parent 13ed80b commit bd249e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/reimplementation/tokenisation/processing/escape_processing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ struct EscapeProcessingParser;
352352

353353
/// Enumeration of the nonterminals used in the escape-processing grammar.
354354
///
355-
/// Some members are nonterminals in the Pest grammar but documented as terminals in the writeup;
356-
/// see [is_documented_as_terminal] below.
355+
/// The nonterminals which are documented as terminals don't appear here, because they are defined
356+
/// using Pest silent rules.
357357
pub type Nonterminal = Rule;
358358

359359
/// Information from a successful match attempt from the escape-processing grammar

src/reimplementation/tokenisation/tokens_matching.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ struct TokenParser;
7070
/// - the token-kind nonterminals (named in Title_case)
7171
/// - subsidiary nonterminals (named in UPPER_CASE)
7272
///
73-
/// Some members are nonterminals in the Pest grammar but documented as terminals in the writeup;
74-
/// see the is_documented_as_terminal implementation below.
73+
/// The nonterminals which are documented as terminals don't appear here, because they are defined
74+
/// using Pest silent rules.
7575
pub type Nonterminal = Rule;
7676

7777
/// Returns the Pest TOKENS and TOKEN rules to use for the specified Rust edition.

0 commit comments

Comments
 (0)