summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-02-01 13:59:42 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-02-01 13:59:42 (GMT)
commit8fda55cdfe71d9e23407169499e918478161328d (patch)
tree95791f3a49cf176781e5089ddcf643f2aa8e93a1 /src/doctokenizer.l
parentdaa0336ab06f76a07f59499cbc47fd919073749d (diff)
downloadDoxygen-8fda55cdfe71d9e23407169499e918478161328d.zip
Doxygen-8fda55cdfe71d9e23407169499e918478161328d.tar.gz
Doxygen-8fda55cdfe71d9e23407169499e918478161328d.tar.bz2
Release-1.3-rc3
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 5b8ae93..d55e015 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -769,7 +769,8 @@ LABELID [a-z_A-Z][a-z_A-Z0-9\-]*
processSection();
BEGIN(St_Sections);
}
-<St_SecLabel2>{LABELID}{BLANK}+ {
+<St_SecLabel2>{LABELID}{BLANK}+ |
+<St_SecLabel2>{LABELID} {
g_secLabel = yytext;
g_secLabel = g_secLabel.stripWhiteSpace();
BEGIN(St_SecTitle);
@@ -780,6 +781,9 @@ LABELID [a-z_A-Z][a-z_A-Z0-9\-]*
processSection();
BEGIN(St_Sections);
}
+<St_SecTitle,St_SecLabel1,St_SecLabel2>. {
+ warn(g_fileName,yylineno,"Error: Unexpected character `%s' while looking for section label or title",yytext);
+ }
/* Generic rules that work for all states */
<*>\n {