We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fd02e commit fb1efadCopy full SHA for fb1efad
source/preprocessor.tex
@@ -53,8 +53,7 @@
53
define-directive\br
54
undef-directive\br
55
line-directive\br
56
- \terminal{\# error \ } \opt{pp-tokens} new-line\br
57
- \terminal{\# warning} \opt{pp-tokens} new-line\br
+ diagnostic-directive\br
58
\terminal{\# pragma } \opt{pp-tokens} new-line\br
59
\terminal{\# }new-line
60
\end{bnf}
@@ -2155,6 +2154,12 @@
2155
2154
\indextext{preprocessing directive!warning}%
2156
\indextext{\idxcode{\#error}|see{preprocessing directive, error}}
2157
+\begin{bnf}
2158
+\nontermdef{diagnostic-directive}\br
2159
+ \terminal{\# error \ } \opt{pp-tokens} new-line\br
2160
+ \terminal{\# warning} \opt{pp-tokens} new-line\br
2161
+\end{bnf}
2162
+
2163
\pnum
2164
A preprocessing directive of the form
2165
\begin{ncsimplebnf}
0 commit comments