diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-06-01 10:13:39 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-06-01 10:13:39 +0000 |
commit | d18da8cd699b7a962d5db67761b17d5a71051ebe (patch) | |
tree | c0862c29780a4b3c9171effd9798818e3785d967 | |
parent | d44a23388d1464ac4158b6dd1591bb5e649ba110 (diff) | |
download | mailfromd-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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/lex.l | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,6 +1,10 @@ +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 =- 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua> @@ -848,12 +848,13 @@ end return keyword(KW_END); line_finish(); return STRING; } line_add(p, strlen(p)); } <CML>[^\\$%\n]*\n { + locus.line++; if (yyleng >= multiline_delimiter_len && memcmp(yytext, multiline_delimiter, multiline_delimiter_len) == 0 && isemptystr(yytext + multiline_delimiter_len)) { free (multiline_delimiter); multiline_delimiter = NULL; |