Skip to content

Commit 61fd02e

Browse files
(alx-0014r6-E) Refactor syntax of line directives
Signed-off-by: Alejandro Colomar <[email protected]>
1 parent 2250910 commit 61fd02e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/preprocessor.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
embed-directive\br
5353
define-directive\br
5454
undef-directive\br
55-
\terminal{\# line \ \ } pp-tokens new-line\br
55+
line-directive\br
5656
\terminal{\# error \ } \opt{pp-tokens} new-line\br
5757
\terminal{\# warning} \opt{pp-tokens} new-line\br
5858
\terminal{\# pragma } \opt{pp-tokens} new-line\br
@@ -2090,6 +2090,11 @@
20902090
\indextext{preprocessing directive!line control}%
20912091
\indextext{\idxcode{\#line}|see{preprocessing directive, line control}}
20922092

2093+
\begin{bnf}
2094+
\nontermdef{line-directive}\br
2095+
\terminal{\# line \ \ } pp-tokens new-line\br
2096+
\end{bnf}
2097+
20932098
\pnum
20942099
The \grammarterm{string-literal} of a
20952100
\tcode{\#line}

0 commit comments

Comments
 (0)