diff options
author | John Hodge <tpg@mutabah.net> | 2016-02-27 10:36:12 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-02-27 10:36:12 +0800 |
commit | 51841b63537145446d5b989ae71f563eaed69200 (patch) | |
tree | 639916f6b89f1fc38cfbe5480d697aa308762aa9 /src/parse/lex.cpp | |
parent | f56c31b60c1f9fbb6f5bf802b4d1d5470d7c3fac (diff) | |
download | mrust-51841b63537145446d5b989ae71f563eaed69200.tar.gz |
Parse/lex - Handle \r in escape codes
Diffstat (limited to 'src/parse/lex.cpp')
-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 77d12f7f..96b04ae3 100644 --- a/src/parse/lex.cpp +++ b/src/parse/lex.cpp @@ -758,6 +758,7 @@ uint32_t Lexer::parseEscape(char enclosing) return '\n'; case 't': return '\t'; + case '\r': case '\n': m_line ++; while( isspace(ch) ) |