summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2007-06-01 10:13:39 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2007-06-01 10:13:39 (GMT)
commitd18da8cd699b7a962d5db67761b17d5a71051ebe (patch) (side-by-side diff)
treec0862c29780a4b3c9171effd9798818e3785d967
parentd44a23388d1464ac4158b6dd1591bb5e649ba110 (diff)
downloadmailfromd-release_4_0_patches.tar.gz
mailfromd-release_4_0_patches.tar.bz2
Fix line counting within here-documentsrelease_4_0_patches
git-svn-id: file:///svnroot/mailfromd/branches/release_4_0_patches@1485 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog4
-rw-r--r--src/lex.l1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8651cdf..16ac14b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-06-01 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * src/lex.l: Fix line counting within here-documents
+
2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
-= Release 4.0 =-
diff --git a/src/lex.l b/src/lex.l
index 017e835..6b4aa8e 100644
--- a/src/lex.l
+++ b/src/lex.l
@@ -851,6 +851,7 @@ end return keyword(KW_END);
line_add(p, strlen(p));
}
<CML>[^\\$%\n]*\n {
+ locus.line++;
if (yyleng >= multiline_delimiter_len
&& memcmp(yytext, multiline_delimiter,
multiline_delimiter_len) == 0

Return to:

Send suggestions and report system problems to the System administrator.