We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
invalid_parses
1 parent 4295f90 commit f5b3fb2Copy full SHA for f5b3fb2
examples/error_printer.cpp
@@ -17,6 +17,7 @@ namespace
17
"########## comments and whitespace"sv,
18
"# bar\rkek"sv,
19
"# bar\bkek"sv,
20
+ "# DEL character: '\x7f'"sv,
21
"# \xf1\x63"sv,
22
"# val1 = 1\fval2 = 2"sv,
23
"foo = 1\n\u2000\nbar = 2"sv,
@@ -115,11 +116,19 @@ namespace
115
116
}
117
else
118
{
- if (c == '\\')
119
+ if (c == '\x7F')
120
- std::cout << '\\';
121
+ // DEL character.
122
+ std::cout << "\\u007F"sv;
123
+ }
124
+ else
125
+ {
126
+ if (c == '\\')
127
128
+ std::cout << '\\';
129
130
+ std::cout << c;
131
- std::cout << c;
132
133
134
0 commit comments