changed some comments
This commit is contained in:
parent
a3453e5bd0
commit
22444e298a
@ -1182,11 +1182,10 @@ int qse_awk_buildrex (
|
||||
|
||||
if (code) *code = tre;
|
||||
if (icode) *icode = itre;
|
||||
return 0;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
#if !defined(USE_REX)
|
||||
|
||||
static int matchtre (
|
||||
|
@ -5691,14 +5691,15 @@ static int get_rexstr (qse_awk_t* awk, qse_awk_tok_t* tok)
|
||||
{
|
||||
if (awk->sio.last.c == QSE_T('/'))
|
||||
{
|
||||
/* this part of the function is different from get_charstr
|
||||
* because of the way this function is called.
|
||||
/* handle an empty regular expression.
|
||||
*
|
||||
* this condition is met when the input is //.
|
||||
* the first / has been tokenized to TOK_DIV already.
|
||||
* if TOK_DIV is seen as a primary, this function is called.
|
||||
* as the token buffer has been cleared by the caller and
|
||||
* the token type is set to TOK_REX, this function can
|
||||
* just return after reading the next character */
|
||||
* just return after reading the next character.
|
||||
* see parse_primary_rex(). */
|
||||
GET_CHAR (awk);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user