aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-07 16:22:49 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-07 16:22:49 +0000
commit4f94dfde7cbe043dfeb11a8712636bac348d3177 (patch)
tree324830e4445acdffa4735e7bce5d11094fe2509f /src
parentdc4f80f3acfdc6a98a543b535a9cb31823ed2835 (diff)
downloadbuild-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 'src')
-rw-r--r--src/build.l2
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}