summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-03-17 20:32:54 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-03-17 20:32:54 (GMT)
commitb1800e6e8923c5a1eeefb136103811135d5813bf (patch)
tree5c9d2280ca0cb07840bfa26ca4dbed5b3225d21f /src/scanner.l
parentcff8111ed33af6033bd188868964d92ea3503188 (diff)
downloadDoxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.zip
Doxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.tar.gz
Doxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.tar.bz2
Release-1.8.0
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scanner.l b/src/scanner.l
index e6cbd17..7bf8f2b 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -3259,7 +3259,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
}
else
{
- if (current->section == Entry::ENUM_SEC)
+ if ((current->section == Entry::ENUM_SEC) || (current->spec&Entry::Enum))
{
current->program+=','; // add field terminator
}
@@ -3329,7 +3329,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
current->type.prepend(yytext);
}
<TypedefName>{ID} {
- if (current->section == Entry::ENUM_SEC)
+ if ((current->section == Entry::ENUM_SEC) || (current->spec&Entry::Enum))
{
current->program+=","; // add field terminator
}
@@ -3350,7 +3350,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
}
<TypedefName>";" { /* typedef of anonymous type */
current->name.sprintf("@%d",anonCount++);
- if (current->section == Entry::ENUM_SEC)
+ if ((current->section == Entry::ENUM_SEC) || (current->spec&Entry::Enum))
{
current->program+=','; // add field terminator
}