Skip to content

Commit e2b08f9

Browse files
committed
[lex.string] Remove unnecessary linebreaks and use bnf instead of bnftab.
Use \bnfindent for indentation in the few remaining cases where it is required.
1 parent 5f876e7 commit e2b08f9

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

source/lex.tex

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,26 +1424,24 @@
14241424
r-char-sequence r-char
14251425
\end{bnf}
14261426

1427-
\begin{bnftab}
1427+
\begin{bnf}
14281428
\nontermdef{r-char}\br
1429-
\>\textnormal{any member of the source character set, except}\br
1430-
\>\>\textnormal{a right parenthesis \terminal{)} followed by the initial \grammarterm{d-char-sequence}}\br
1431-
\>\>\textnormal{(which may be empty) followed by a double quote \terminal{"}.}
1432-
\end{bnftab}
1429+
\textnormal{any member of the source character set, except a right parenthesis \terminal{)} followed by}\br
1430+
\bnfindent\textnormal{the initial \grammarterm{d-char-sequence} (which may be empty) followed by a double quote \terminal{"}.}
1431+
\end{bnf}
14331432

14341433
\begin{bnf}
14351434
\nontermdef{d-char-sequence}\br
14361435
d-char\br
14371436
d-char-sequence d-char
14381437
\end{bnf}
14391438

1440-
\begin{bnftab}
1439+
\begin{bnf}
14411440
\nontermdef{d-char}\br
1442-
\>\textnormal{any member of the basic source character set except:}\br
1443-
\>\>\textnormal{space, the left parenthesis \terminal{(}, the right parenthesis \terminal{)}, the backslash \terminal{\textbackslash},}\br
1444-
\>\>\textnormal{and the control characters representing horizontal tab,}\br
1445-
\>\>\textnormal{vertical tab, form feed, and newline.}
1446-
\end{bnftab}
1441+
\textnormal{any member of the basic source character set except:}\br
1442+
\bnfindent\textnormal{space, the left parenthesis \terminal{(}, the right parenthesis \terminal{)}, the backslash \terminal{\textbackslash}, and the control characters}\br
1443+
\bnfindent\textnormal{representing horizontal tab, vertical tab, form feed, and newline.}
1444+
\end{bnf}
14471445

14481446
\pnum
14491447
\indextext{literal!string}%

0 commit comments

Comments
 (0)