summaryrefslogtreecommitdiffstats
path: root/src/lexer.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-01-05 04:12:22 (GMT)
committerEvan Martin <martine@danga.com>2012-01-05 04:13:35 (GMT)
commiteeed724111402fb4746dbd2544c90ab946d03c67 (patch)
tree160354192a9a234f2373c8b9111f854f0498e0c2 /src/lexer.cc
parent23ab2829f5f3dd66d95e1d3230f9c4bcb70cfabf (diff)
downloadNinja-eeed724111402fb4746dbd2544c90ab946d03c67.zip
Ninja-eeed724111402fb4746dbd2544c90ab946d03c67.tar.gz
Ninja-eeed724111402fb4746dbd2544c90ab946d03c67.tar.bz2
make Lexer::Error not emit trailing newline
Now it's consistent with other errors. Fixes part of issue #187.
Diffstat (limited to 'src/lexer.cc')
-rw-r--r--src/lexer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lexer.cc b/src/lexer.cc
index 6bcdedc..b4707d2 100644
--- a/src/lexer.cc
+++ b/src/lexer.cc
@@ -53,7 +53,7 @@ bool Lexer::Error(const string& message, string* err) {
*err += "...";
*err += "\n";
*err += string(col, ' ');
- *err += "^ near here\n";
+ *err += "^ near here";
}
return false;