diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-05-07 12:56:01 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-05-07 12:56:01 (GMT) |
commit | 53da67394cd52ea7301f306ad766107b38ffd2ae (patch) | |
tree | c35eb3a8d51696f3a4cddc5f0e8d484466382833 /src/scanner.l | |
parent | 9b0cf1e08f786c5fbc0583fdeecd9b6fefda2b76 (diff) | |
download | Doxygen-53da67394cd52ea7301f306ad766107b38ffd2ae.zip Doxygen-53da67394cd52ea7301f306ad766107b38ffd2ae.tar.gz Doxygen-53da67394cd52ea7301f306ad766107b38ffd2ae.tar.bz2 |
Release-1.3.7
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/scanner.l b/src/scanner.l index f8c7033..3470a18 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -2154,7 +2154,8 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;] current->type = current->type.mid(3); } current->type=current->type.simplifyWhiteSpace(); - current->args=current->args.simplifyWhiteSpace(); + current->args=removeRedundantWhiteSpace(current->args); + // was: current->args.simplifyWhiteSpace(); current->name=current->name.stripWhiteSpace(); //if (!current->name.isEmpty() && current->type.left(8)=="typedef ") //{ @@ -2338,7 +2339,8 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;] current->program+=','; // add field terminator } // add compound definition to the tree - current->args = current->args.simplifyWhiteSpace(); + current->args=removeRedundantWhiteSpace(current->args); + // was: current->args.simplifyWhiteSpace(); current->type = current->type.simplifyWhiteSpace(); current->name = current->name.stripWhiteSpace(); //printf("adding `%s' `%s' `%s' brief=%s insideObjC=%d %x\n",current->type.data(),current->name.data(),current->args.data(),current->brief.data(),insideObjC,current->section); @@ -3082,7 +3084,8 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;] <Function>[;{,] { current->name=current->name.simplifyWhiteSpace(); current->type=current->type.simplifyWhiteSpace(); - current->args=current->args.simplifyWhiteSpace(); + current->args=removeRedundantWhiteSpace(current->args); + // was: current->args.simplifyWhiteSpace(); current->fileName = yyFileName; current->startLine = yyLineNr; if (*yytext!=';' || (current_root->section&Entry::COMPOUND_MASK) ) @@ -3694,7 +3697,7 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;] } <Comment>"/*" { current->program += yytext ; } <Comment>"//" { current->program += yytext ; } -<Comment>[^\n\*]+ { current->program += yytext ; } +<Comment>[^\n\/\*]+ { current->program += yytext ; } <Comment>"*/" { current->program += yytext ; BEGIN( lastContext ) ; } |