diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-11 19:36:42 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-11 19:36:42 (GMT) |
commit | 22f6dcc3cedf1bf4360c452db40949e3c156f41b (patch) | |
tree | 8570ad3dc067bc705ed6dbbc470f478951b44a75 /src/xml.l | |
parent | 714f89d30cf04ad972df84a6a398258b751d3553 (diff) | |
download | Doxygen-22f6dcc3cedf1bf4360c452db40949e3c156f41b.zip Doxygen-22f6dcc3cedf1bf4360c452db40949e3c156f41b.tar.gz Doxygen-22f6dcc3cedf1bf4360c452db40949e3c156f41b.tar.bz2 |
Make layout parser use the new XML parser
Diffstat (limited to 'src/xml.l')
-rw-r--r-- | src/xml.l | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -131,6 +131,7 @@ ENDCDATA "]]>" BEGIN(Element); } {COMMENT} { yyextra->commentContext = YY_START; + countLines(yyscanner,yytext,yyleng); BEGIN(Comment); } } @@ -199,7 +200,9 @@ ENDCDATA "]]>" . { } } <Comment>{ - {COMMENTEND} { BEGIN(yyextra->commentContext); } + {COMMENTEND} { countLines(yyscanner,yytext,yyleng); + BEGIN(yyextra->commentContext); + } [^\n-]+ { } \n { yyextra->lineNr++; } . { } @@ -283,7 +286,7 @@ static void addElement(yyscan_t yyscanner) } if (yy_flex_debug) { - fprintf(stderr,"startElement(%s,attr=[",yyextra->name.data()); + fprintf(stderr,"%d: startElement(%s,attr=[",yyextra->lineNr,yyextra->name.data()); for (auto attr : yyextra->attrs) { fprintf(stderr,"%s='%s' ",attr.first.c_str(),attr.second.c_str()); @@ -295,7 +298,7 @@ static void addElement(yyscan_t yyscanner) { if (yy_flex_debug) { - fprintf(stderr,"endElement(%s)\n",yyextra->name.data()); + fprintf(stderr,"%d: endElement(%s)\n",yyextra->lineNr,yyextra->name.data()); } checkAndUpdatePath(yyscanner); if (yyextra->handlers.endElement) |