File tree Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ struct declinfoYY_state
61
61
QCString name;
62
62
QCString args;
63
63
int sharpCount;
64
+ int roundCount;
64
65
bool classTempListFound;
65
66
bool funcTempListFound;
66
67
QCString exceptionString;
@@ -169,22 +170,38 @@ ID "$"?([a-z_A-Z\x80-\xFF][a-z_A-Z0-9\x80-\xFF]*)|(@[0-9]+)
169
170
<Start >{B }* " <" {
170
171
yyextra->name +=" <" ;
171
172
yyextra->sharpCount =0 ;
173
+ yyextra->roundCount =0 ;
172
174
BEGIN (Template);
173
175
}
174
176
<Template >" <<" { yyextra->name +=" <<" ; }
175
177
<Template >" >>" { yyextra->name +=" >>" ; }
178
+ <Template >" (" { yyextra->name +=" (" ;
179
+ yyextra->roundCount ++;
180
+ }
181
+ <Template >" )" { yyextra->name +=" )" ;
182
+ if (yyextra->roundCount >0 )
183
+ {
184
+ yyextra->roundCount --;
185
+ }
186
+ }
176
187
<Template >" <" {
177
188
yyextra->name +=" <" ;
178
- yyextra->sharpCount ++;
189
+ if (yyextra->roundCount ==0 )
190
+ {
191
+ yyextra->sharpCount ++;
192
+ }
179
193
}
180
194
<Template >" >" {
181
195
yyextra->name +=" >" ;
182
- if (yyextra->sharpCount )
183
- --yyextra->sharpCount ;
184
- else
185
- {
186
- BEGIN (Start);
187
- }
196
+ if (yyextra->roundCount ==0 )
197
+ {
198
+ if (yyextra->sharpCount )
199
+ --yyextra->sharpCount ;
200
+ else
201
+ {
202
+ BEGIN (Start);
203
+ }
204
+ }
188
205
}
189
206
<Template >. {
190
207
yyextra->name +=*yytext;
You can’t perform that action at this time.
0 commit comments