From 6697029a0d71a886538caac6eaf1ebdaa7cf0fb3 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 26 Nov 2016 12:04:30 +0800 Subject: Lex - Fix line counts when newlines are in strings --- src/parse/lex.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } } -- cgit v1.2.3