diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-01-07 22:07:24 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-01-07 22:07:24 +0200 |
commit | 385f22a32c3794615d713e519ae290eb09b2c4d2 (patch) | |
tree | f96fedbcafe42638141df0ed7b116c656b97dd1a /awkgram.c | |
parent | 9fc264e33c0fcc77ed18860a47bea824d75daebd (diff) | |
download | egawk-385f22a32c3794615d713e519ae290eb09b2c4d2.tar.gz egawk-385f22a32c3794615d713e519ae290eb09b2c4d2.tar.bz2 egawk-385f22a32c3794615d713e519ae290eb09b2c4d2.zip |
Bug fix in regexp parsing.
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -5374,10 +5374,8 @@ yylex(void) pushback(); break; case ']': - if (tokstart[0] == '[' - && (tok == tokstart + 1 - || (tok == tokstart + 2 - && tokstart[1] == '^'))) + if (tok[-1] == '[' + || (tok[-2] == '[' && tok[-1] == '^')) /* do nothing */; else in_brack--; |