aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-02-13 11:26:28 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-02-13 11:26:28 +0200
commit64c5b3da1b7ebe73fcfb4edd9450382ccf1159fb (patch)
treef417bac72172c7e59ede42c71e42730d2601a26d /awkgram.c
parent378e213c953d6482ae4d92a69b526cdeaef1f26f (diff)
parentad2954e3ccd8da60e0d0ce707489071f030cbc59 (diff)
downloadegawk-64c5b3da1b7ebe73fcfb4edd9450382ccf1159fb.tar.gz
egawk-64c5b3da1b7ebe73fcfb4edd9450382ccf1159fb.tar.bz2
egawk-64c5b3da1b7ebe73fcfb4edd9450382ccf1159fb.zip
Merge branch 'master' into non-fatal-io-2
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/awkgram.c b/awkgram.c
index 806d4485..b87a0088 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -5535,7 +5535,7 @@ yylex(void)
if (lasttok == LEX_EOF) /* error earlier in current source, must give up !! */
return 0;
- c = nextc(true);
+ c = nextc(! want_regexp);
if (c == END_SRC)
return 0;
if (c == END_FILE)
@@ -5577,12 +5577,12 @@ yylex(void)
want_regexp = false;
tok = tokstart;
for (;;) {
- c = nextc(true);
+ c = nextc(false);
if (gawk_mb_cur_max == 1 || nextc_is_1stbyte) switch (c) {
case '[':
/* one day check for `.' and `=' too */
- if (nextc(true) == ':' || in_brack == 0)
+ if (nextc(false) == ':' || in_brack == 0)
in_brack++;
pushback();
break;
@@ -5594,7 +5594,7 @@ yylex(void)
in_brack--;
break;
case '\\':
- if ((c = nextc(true)) == END_FILE) {
+ if ((c = nextc(false)) == END_FILE) {
pushback();
yyerror(_("unterminated regexp ends with `\\' at end of file"));
goto end_regexp; /* kludge */
@@ -5812,7 +5812,7 @@ retry:
return lasttok = '*';
case '/':
- if (nextc(true) == '=') {
+ if (nextc(false) == '=') {
pushback();
return lasttok = SLASH_BEFORE_EQUAL;
}