diff options
author | albert-github <albert.tests@gmail.com> | 2019-07-10 16:42:16 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-07-10 16:42:16 (GMT) |
commit | a2eb1df42d79104878d14dfc957a97e5ef5831eb (patch) | |
tree | 6786ed97219f7e2ca8db204e7061848c8fda59fa /src/commentscan.l | |
parent | 34c9bac4624c5b94172af4a9d9168a44482fe552 (diff) | |
download | Doxygen-a2eb1df42d79104878d14dfc957a97e5ef5831eb.zip Doxygen-a2eb1df42d79104878d14dfc957a97e5ef5831eb.tar.gz Doxygen-a2eb1df42d79104878d14dfc957a97e5ef5831eb.tar.bz2 |
regression #7105 correct counting for group close counting
In case of an extra closing we should not count this closing as otherwise sequences like:
```
@}
...
@{
...
@}
```
will give a warning at both `@}` statements and not just at the first (second one has an opening statement_.
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 665360c..519cc09 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -3361,6 +3361,7 @@ void closeGroup(Entry *e,const char *fileName,int line,bool foundInline) g_openCount--; if (g_openCount < 0) { + g_openCount++; // undo an extra non existing specified level warn(fileName,line,"unbalanced grouping commands"); } //printf("==> closeGroup(name=%s,sec=%x,file=%s,line=%d) g_autoGroupStack=%d\n", |