diff options
-rw-r--r-- | src/parse/lex.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp index 4e5b4c2d..7b99c433 100644 --- a/src/parse/lex.cpp +++ b/src/parse/lex.cpp @@ -857,9 +857,13 @@ uint32_t Lexer::parseEscape(char enclosing) case '\n': while( ch.isspace() ) ch = this->getc(); - this->ungetc(); - if( ch == enclosing ) + if(ch == '\\' ) + return parseEscape(enclosing); + else if( ch == enclosing ) + { + this->ungetc(); return ~0; + } else return ch.v; default: |