Skip to content

Commit ed2683a

Browse files
(alx-0014r6-A) Refactor syntax of include directives
Signed-off-by: Alejandro Colomar <[email protected]>
1 parent 3c0ac90 commit ed2683a

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
@@ -47,7 +47,7 @@
4747

4848
\begin{bnf}
4949
\nontermdef{control-line}\br
50-
\terminal{\# include} pp-tokens new-line\br
50+
include-directive\br
5151
pp-import\br
5252
\terminal{\# embed \ } pp-tokens new-line\br
5353
\terminal{\# define } identifier replacement-list new-line\br
@@ -696,6 +696,11 @@
696696
\indextext{inclusion!source file|see{preprocessing directive, source-file inclusion}}%
697697
\indextext{\idxcode{\#include}}%
698698

699+
\begin{bnf}
700+
\nontermdef{include-directive}\br
701+
\terminal{\# include} pp-tokens new-line\br
702+
\end{bnf}
703+
699704
\pnum
700705
A \defnadj{header}{search} for a sequence of characters
701706
searches a sequence of places for a header

0 commit comments

Comments
 (0)