ChangeLog 20000424-19:40 GMT+1
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
20000424-19:40 GMT+1 Ryszard Glab <rglab@imid.med.pl>
|
||||
|
||||
*source/compiler/harbour.l
|
||||
* fixed recognition of WHILE abbreviation (WHIL)
|
||||
|
||||
20000424-19:15 GMT+1 Ryszard Glab <rglab@imid.med.pl>
|
||||
|
||||
*source/compiler/hbfix.c
|
||||
|
||||
@@ -370,6 +370,14 @@ Separator {SpaceTab}
|
||||
hb_comp_iState =DO;
|
||||
yyless( yyleng-5 );
|
||||
}
|
||||
<DO_>{Separator}+"whil" { /* DO WHILE found -move it to WHILE state */
|
||||
/* NOTE: we cannot decide here if it is DO WHILE <condition>
|
||||
* or DO while [WITH <args>]
|
||||
*/
|
||||
if( i_INDEX_STATE ) BEGIN INDEX; else BEGIN 0;
|
||||
hb_comp_iState =DO;
|
||||
yyless( yyleng-5 );
|
||||
}
|
||||
<DO_>{Separator}+[_a-zA-Z\&] { /* an identifier 'DO id WITH' or 'DO &id WITH' */
|
||||
if( i_INDEX_STATE ) BEGIN INDEX; else BEGIN 0;
|
||||
unput( yytext[ yyleng-1 ] );
|
||||
@@ -1172,7 +1180,7 @@ Separator {SpaceTab}
|
||||
%{
|
||||
/* ************************************************************************ */
|
||||
%}
|
||||
"while" BEGIN WHILE_;
|
||||
"while"|"whil" BEGIN WHILE_;
|
||||
<WHILE_>{Separator}*\n { /* end of line */
|
||||
if( i_INDEX_STATE ) BEGIN INDEX; else BEGIN 0;
|
||||
unput( '\n' );
|
||||
|
||||
Reference in New Issue
Block a user