Skip to content

Commit 2f2dee4

Browse files
(alx-0014r6-G) Refactor syntax of pragma directives
Signed-off-by: Alejandro Colomar <[email protected]>
1 parent fb1efad commit 2f2dee4

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
@@ -54,7 +54,7 @@
5454
undef-directive\br
5555
line-directive\br
5656
diagnostic-directive\br
57-
\terminal{\# pragma } \opt{pp-tokens} new-line\br
57+
pragma-directive\br
5858
\terminal{\# }new-line
5959
\end{bnf}
6060

@@ -2182,6 +2182,11 @@
21822182
\indextext{preprocessing directive!pragma}%
21832183
\indextext{\idxcode{\#pragma}|see{preprocessing directive, pragma}}
21842184

2185+
\begin{bnf}
2186+
\nontermdef{pragma-directive}\br
2187+
\terminal{\# pragma } \opt{pp-tokens} new-line\br
2188+
\end{bnf}
2189+
21852190
\pnum
21862191
A preprocessing directive of the form
21872192
\begin{ncsimplebnf}

0 commit comments

Comments
 (0)