From 369470005607b9501a769be0ae2a4c79c90bad84 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 8 Nov 2009 15:35:19 +0200 Subject: Implement usage generation Also migrate the CLI compiler usage handling to the auto-generated version. --- cli/lexer.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/lexer.cxx') 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; } -- cgit v1.1