summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-01-09 14:50:03 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-01-09 14:50:03 (GMT)
commit93a6f04ac6f9df7c66b704b24383e3d239fc7c17 (patch)
treee97e6d80663ce99b2c61ce4599d3f58a5f0d1ea8 /src/doctokenizer.l
parentabb7f5372f3646d8dc70fb5c47344dc9250d8b2c (diff)
downloadDoxygen-93a6f04ac6f9df7c66b704b24383e3d239fc7c17.zip
Doxygen-93a6f04ac6f9df7c66b704b24383e3d239fc7c17.tar.gz
Doxygen-93a6f04ac6f9df7c66b704b24383e3d239fc7c17.tar.bz2
Consistency `\*only` and `\end*only` commands
Not all possibilities in respect of `\*only` and `\end*only` commands were present which could lead to messages like: ``` .../aa.h:4: warning: reached end of comment while inside a \rtfonly block; check for missing \endrtfonly tag! ../.aa.h:4: warning: rtfonly section ended without end marker .../aa.h:4: warning: rtfonly section ended without end marker ``` in case of a problem like: ``` /** \file * \rtfonly * RTF /* Nested */ * \endrtfonly */ ```
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 4882570..11e96d6 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -1296,6 +1296,14 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
g_endMarker="endlatexonly";
BEGIN(St_SecSkip);
}
+<St_Sections>{CMD}"manonly"/[^a-z_A-Z0-9] {
+ g_endMarker="endmanonly";
+ BEGIN(St_SecSkip);
+ }
+<St_Sections>{CMD}"rtfonly"/[^a-z_A-Z0-9] {
+ g_endMarker="endrtfonly";
+ BEGIN(St_SecSkip);
+ }
<St_Sections>{CMD}"xmlonly"/[^a-z_A-Z0-9] {
g_endMarker="endxmlonly";
BEGIN(St_SecSkip);