diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-05-14 19:55:59 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-05-14 19:55:59 (GMT) |
commit | 64200b5e975b19f38f9a68569b98c6f53e6fe4d9 (patch) | |
tree | d211455e0cef95445694e7630c63dd0e90d3f3a5 /src/scanner.l | |
parent | a9f41d99f3651cd66850e9020bc3af7cb559306e (diff) | |
download | Doxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.zip Doxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.tar.gz Doxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.tar.bz2 |
Release-1.3-20030514
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/scanner.l b/src/scanner.l index 76a726a..ba3704c 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -1884,9 +1884,9 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;] /* <FindFieldArg>"," { unput(*yytext); BEGIN(FindFields); } */ -<ReadBody,ReadNSBody>[^\r\n\#{}"'/]* { current->program += yytext ; } -<ReadBody,ReadNSBody>"//".* { current->program += yytext ; } -<ReadBody,ReadNSBody>"#".* { if (! insidePHP) +<ReadBody,ReadNSBody>[^\r\n\#{}"'/]* { current->program += yytext ; } +<ReadBody,ReadNSBody>"//".* { current->program += yytext ; } +<ReadBody,ReadNSBody>"#".* { if (! insidePHP) REJECT; current->program += yytext ; } @@ -4454,14 +4454,16 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;] <LineDoc>[\n\r]+{B}*"//"[!/] { lineCount(); } <LineDoc>\n { yyLineNr++; - if (!Config_getBool("HIDE_IN_BODY_DOCS") && - lastDocContext==SkipCurly) // inside body + if (lastDocContext==SkipCurly) // inside body { - if (!previous->doc.isEmpty()) + if (!Config_getBool("HIDE_IN_BODY_DOCS")) { - previous->doc+="<p>"; + if (!previous->doc.isEmpty()) + { + previous->doc+="<p>"; + } + previous->doc += current->brief; } - previous->doc += current->brief; current->brief.resize(0); } BEGIN( lastDocContext ); @@ -5003,7 +5005,10 @@ void parseMain(Entry *rt) parseCompounds(rt); } +#if !defined(YY_FLEX_SUBMINOR_VERSION) //---------------------------------------------------------------------------- extern "C" { // some bogus code to keep the compiler happy void scannerYYdummy() { yy_flex_realloc(0,0); } } +#endif + |