diff options
Diffstat (limited to 'cli/lexer.cxx')
-rw-r--r-- | cli/lexer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/lexer.cxx b/cli/lexer.cxx index 12e182c..7bde749 100644 --- a/cli/lexer.cxx +++ b/cli/lexer.cxx @@ -400,7 +400,7 @@ char_literal (xchar c) // them with \', as in '\\'. // if (c == '\\' && p == '\\') - p = '.'; + p = '\0'; else p = c; } @@ -439,7 +439,7 @@ string lexer:: string_literal_trailer () { string r; - char p ('"'); + char p ('\0'); while (true) { @@ -458,10 +458,10 @@ string_literal_trailer () break; // We need to keep track of \\ escapings so we don't confuse - // them with \', as in '\\'. + // them with \", as in "\\". // if (c == '\\' && p == '\\') - p = '.'; + p = '\0'; else p = c; } |