Mercurial > jwe > octave
changeset 23805:bf061a189af9
Use C++11 raw string literals to avoid escaping double quotes.
* input.cc, jit-ir.h:
Replace regular strings containing "\"" patterns with R"(..."...)".
author | Rik <rik@octave.org> |
---|---|
date | Fri, 28 Jul 2017 11:30:38 -0700 |
parents | 8057d3f0673d |
children | 6925c8d2cd87 |
files | libinterp/corefcn/input.cc libinterp/parse-tree/jit-ir.h |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/input.cc Fri Jul 28 11:19:36 2017 -0700 +++ b/libinterp/corefcn/input.cc Fri Jul 28 11:30:38 2017 -0700 @@ -529,7 +529,7 @@ octave::command_editor::set_basic_quote_characters (R"(")"); octave::command_editor::set_filename_quote_characters (" \t\n\\\"'@<>=;|&()#$`?*[!:{"); - octave::command_editor::set_completer_quote_characters ("'\""); + octave::command_editor::set_completer_quote_characters (R"('")"); octave::command_editor::set_completion_function (generate_completion);
--- a/libinterp/parse-tree/jit-ir.h Fri Jul 28 11:19:36 2017 -0700 +++ b/libinterp/parse-tree/jit-ir.h Fri Jul 28 11:30:38 2017 -0700 @@ -536,10 +536,10 @@ print_indent (os, indent); jit_print (os, type ()) << ": "; if (QUOTE) - os << "\""; + os << R"(")"; os << mvalue; if (QUOTE) - os << "\""; + os << R"(")"; return os; }