[BACK]Return to scan.l CVS log [TXT][DIR] Up to [local] / src / usr.bin / bc

Diff for /src/usr.bin/bc/scan.l between version 1.6 and 1.7

version 1.6, 2003/09/29 03:24:27 version 1.7, 2003/09/30 18:46:11
Line 55 
Line 55 
   
 \"              BEGIN(string); init_strbuf();  \"              BEGIN(string); init_strbuf();
 <string>{  <string>{
         [^"\n]+ add_str(yytext);          [^"\n\\\[\]]+   add_str(yytext);
           \[      add_str("\\[");
           \]      add_str("\\]");
           \\      add_str("\\\\");
         \n      add_str("\n"); lineno++;          \n      add_str("\n"); lineno++;
         \"      BEGIN(INITIAL); yylval.str = strbuf; return STRING;          \"      BEGIN(INITIAL); yylval.str = strbuf; return STRING;
         <<EOF>> fatal("end of file in string");          <<EOF>> fatal("end of file in string");

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7