aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-08-02 18:20:53 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-08-02 18:20:53 +0300
commit23356c2d522bf17b4acb314f7aa6503a62db2765 (patch)
tree12e82b306c973dfd1b361ca87de47967424d3ddf /awkgram.c
parentc1f670b26671cc8d60d967bbcb42cb8deb3baf2b (diff)
downloadegawk-23356c2d522bf17b4acb314f7aa6503a62db2765.tar.gz
egawk-23356c2d522bf17b4acb314f7aa6503a62db2765.tar.bz2
egawk-23356c2d522bf17b4acb314f7aa6503a62db2765.zip
Add lint warning for escaped newlines.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/awkgram.c b/awkgram.c
index 10c55fa4..3abb2e16 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -6274,6 +6274,8 @@ retry:
if (c == '\n') {
if (do_posix)
fatal(_("POSIX does not allow physical newlines in string values"));
+ else if (do_lint)
+ lintwarn(_("backslash string continuation is not portable"));
sourceline++;
continue;
}