diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-05-14 19:55:59 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-05-14 19:55:59 (GMT) |
commit | 20bd371f722f95bdf9da2d5c27753af4d38e7b6f (patch) | |
tree | d211455e0cef95445694e7630c63dd0e90d3f3a5 /src/scanner.l | |
parent | ea4b32cb910635a50467b02f36b5521337451cf0 (diff) | |
download | Doxygen-20bd371f722f95bdf9da2d5c27753af4d38e7b6f.zip Doxygen-20bd371f722f95bdf9da2d5c27753af4d38e7b6f.tar.gz Doxygen-20bd371f722f95bdf9da2d5c27753af4d38e7b6f.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 + |