diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-26 12:04:30 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-26 12:04:30 +0800 |
commit | 6697029a0d71a886538caac6eaf1ebdaa7cf0fb3 (patch) | |
tree | 211294fe9932385258eef2ce6209765047bfa0f9 /src/parse | |
parent | d0be7c28cdf2068a89f0d33c97d0e5500f2c7dc9 (diff) | |
download | mrust-6697029a0d71a886538caac6eaf1ebdaa7cf0fb3.tar.gz |
Lex - Fix line counts when newlines are in strings
Diffstat (limited to 'src/parse')
-rw-r--r-- | src/parse/lex.cpp | 1 |
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; } } |