diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-11-08 15:35:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-11-08 15:35:19 +0200 |
commit | 369470005607b9501a769be0ae2a4c79c90bad84 (patch) | |
tree | 459030d6b0ca4f1799d0313a5e63fc24038cd34d /cli/lexer.cxx | |
parent | 907b5fed58d53bbb5e25c590df97f01a0ac93733 (diff) |
Implement usage generation
Also migrate the CLI compiler usage handling to the auto-generated version.
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; } |