diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-07 16:22:49 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-07 16:22:49 +0000 |
commit | 4f94dfde7cbe043dfeb11a8712636bac348d3177 (patch) | |
tree | 324830e4445acdffa4735e7bce5d11094fe2509f | |
parent | dc4f80f3acfdc6a98a543b535a9cb31823ed2835 (diff) | |
download | build-4f94dfde7cbe043dfeb11a8712636bac348d3177.tar.gz build-4f94dfde7cbe043dfeb11a8712636bac348d3177.tar.bz2 build-4f94dfde7cbe043dfeb11a8712636bac348d3177.tar.xz build-4f94dfde7cbe043dfeb11a8712636bac348d3177.zip |
A bug in the lexer was causing the line count to be off by 3 for every line
continuation token.
Diffstat (limited to '')
-rw-r--r-- | src/build.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.l b/src/build.l index 2b834a2..3107431 100644 --- a/src/build.l +++ b/src/build.l | |||
@@ -46,7 +46,7 @@ std::string strbuf; | |||
46 | "targets" return TOK_TARGETS; | 46 | "targets" return TOK_TARGETS; |
47 | 47 | ||
48 | "..."\n { | 48 | "..."\n { |
49 | yylloc->last_line += yyleng; | 49 | yylloc->last_line += 1; |
50 | yylloc->first_line = yylloc->last_line; | 50 | yylloc->first_line = yylloc->last_line; |
51 | yylloc->first_column = yylloc->last_column = 0; | 51 | yylloc->first_column = yylloc->last_column = 0; |
52 | } | 52 | } |