diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-03-17 22:58:03 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-03-17 22:58:03 +0200 |
commit | 1d8ef985bc59f973895b54057535281b69e557b7 (patch) | |
tree | 343305a810b61ff6e0c2ac17d8a38f372043d500 /awkgram.c | |
parent | eb589a106539d8495802088baa2c579189a090a1 (diff) | |
parent | cd2ff61aaf4938092517880ad7655828d99a3cb9 (diff) | |
download | gawk-constants.tar.gz |
Merge branch 'master' into constantsconstants
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -5601,7 +5601,10 @@ yylex(void) pushback(); yyerror(_("unterminated regexp ends with `\\' at end of file")); goto end_regexp; /* kludge */ - } else if (c == '\n') { + } + if (c == '\r') /* allow MS-DOS files. bleah */ + c = nextc(true); + if (c == '\n') { sourceline++; continue; } else { @@ -5958,6 +5961,8 @@ retry: if ((gawk_mb_cur_max == 1 || nextc_is_1stbyte) && c == '\\') { c = nextc(true); + if (c == '\r') /* allow MS-DOS files. bleah */ + c = nextc(true); if (c == '\n') { sourceline++; continue; |