Skip to content

Commit 48758be

Browse files
committed
Fix unwanted display of X<>
1 parent a0f174e commit 48758be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/Language/grammars.pod6

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ should only be used to parse text; if you wish to extract complex data, an
7676
L<action object|/language/grammars#Action_Objects> is recommended to be used in
7777
conjunction with the grammar.
7878
79-
X<sym>
80-
X<< :sym<> >>
81-
X<protoregex>
79+
X<|sym>
80+
X<<| :sym<> >>
81+
X<|protoregex>
8282
=head2 Protoregexes
8383
8484
If you have a lot of alternations, it may become difficult to produce
@@ -161,7 +161,7 @@ the thing works—all thanks to protoregexes.
161161
162162
=head2 Special Tokens
163163
164-
X<TOP>
164+
X<|TOP>
165165
=head3 C<TOP>
166166
167167
grammar Foo {
@@ -179,7 +179,7 @@ Using C<rule TOP> or C<regex TOP> are also acceptable.
179179
A different token can be chosen to be matched first using the C<:rule> named
180180
argument to C<.parse>, C<.subparse>, or C<.parsefile> C<Grammar> methods.
181181
182-
X<ws>
182+
X<|ws>
183183
=head3 C<ws>
184184
185185
When C<rule> instead of C<token> is used, any whitespace after an
@@ -206,7 +206,7 @@ It's perfectly fine to provide your own C<ws> token:
206206
}.parse: "4 \n\n 5"; # Fails
207207
208208
209-
X<< <?> >>
209+
X<<| <?> >>
210210
=head3 Always Succeed Assertion
211211
212212
The C<< <?> >> is the I<always succeed> assertion. When used as a grammar

0 commit comments

Comments
 (0)