summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-26 12:04:30 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-26 12:04:30 +0800
commit6697029a0d71a886538caac6eaf1ebdaa7cf0fb3 (patch)
tree211294fe9932385258eef2ce6209765047bfa0f9 /src/parse
parentd0be7c28cdf2068a89f0d33c97d0e5500f2c7dc9 (diff)
downloadmrust-6697029a0d71a886538caac6eaf1ebdaa7cf0fb3.tar.gz
Lex - Fix line counts when newlines are in strings
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/lex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp
index 39842545..dfd2a2d3 100644
--- a/src/parse/lex.cpp
+++ b/src/parse/lex.cpp
@@ -656,6 +656,7 @@ Token Lexer::getTokenInt()
}
else
{
+ if( ch == '\n') m_line ++;
str += ch;
}
}