Skip to content

Commit 6122392

Browse files
authored
[spec/istring] Use GRAMMAR_LEX (#3913)
Stop the grammar sections being included in the parser grammar page.
1 parent c2df744 commit 6122392

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ddoc/source/preprocessor.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ auto genGrammar(string fileText)
287287
{
288288
foreach (i, entry; specTocEntries)
289289
{
290-
if (entry.fileName.endsWith("grammar.dd", "lex.dd", "simd.dd"))
290+
if (entry.fileName.endsWith("grammar.dd", "lex.dd", "istring.dd", "simd.dd"))
291291
continue;
292292

293293
enum grammarKey = "$(GRAMMAR";

spec/istring.dd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ can be overloaded or handled by template functions.)
1212

1313
$(H2 $(LNAME2 ies, IES Literals))
1414

15-
$(GRAMMAR
15+
$(GRAMMAR_LEX
1616
$(GNAME InterpolationExpressionSequence):
1717
$(GLINK InterpolatedDoubleQuotedLiteral)
1818
$(GLINK InterpolatedWysiwygLiteral)
@@ -28,7 +28,7 @@ width of the character type for the string expressions.)
2828

2929
$(H3 $(LNAME2 ies_doublequoted, Double Quoted IES Literals))
3030

31-
$(GRAMMAR
31+
$(GRAMMAR_LEX
3232
$(GNAME InterpolatedDoubleQuotedLiteral):
3333
$(B i") $(GLINK InterpolatedDoubleQuotedCharacters)$(OPT) $(B ")
3434

@@ -61,7 +61,7 @@ expression, and escapes are not needed inside that part of the expression.)
6161

6262
$(H3 $(LNAME2 ies_wysiwyg, Wysiwyg IES Literals))
6363

64-
$(GRAMMAR
64+
$(GRAMMAR_LEX
6565
$(GNAME InterpolatedWysiwygLiteral):
6666
$(B i$(BACKTICK)) $(GLINK InterpolatedWysiwygCharacters)$(OPT) $(B $(BACKTICK))
6767

@@ -80,7 +80,7 @@ escapes are recognized inside these literals.)
8080

8181
$(H3 $(LNAME2 ies_token, Token IES Literals))
8282

83-
$(GRAMMAR
83+
$(GRAMMAR_LEX
8484
$(GNAME InterpolatedTokenLiteral):
8585
$(D iq{) $(GLINK InterpolatedTokenStringTokens)$(OPT) $(D })
8686

0 commit comments

Comments
 (0)