Skip to content

Commit 4945177

Browse files
committed
Rename the variable for closing sequence
1 parent 33720c0 commit 4945177

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/load.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ auto process_cpp_line(
203203
bool& in_comment,
204204
bool& in_string_literal,
205205
bool& in_raw_string_literal,
206-
std::string& d_char_sequence,
206+
std::string& raw_string_closing_seq,
207207
std::vector<int>& brace_depth,
208208
lineno_t lineno,
209209
std::vector<error>& errors
@@ -243,12 +243,12 @@ auto process_cpp_line(
243243
}
244244
}
245245
else if (in_raw_string_literal) {
246-
auto end_pos = line.find(d_char_sequence, i);
246+
auto end_pos = line.find(raw_string_closing_seq, i);
247247
if (end_pos == std::string::npos) {
248248
return r;
249249
}
250250
in_raw_string_literal = false;
251-
i = end_pos+d_char_sequence.size()-1;
251+
i = end_pos+raw_string_closing_seq.size()-1;
252252
}
253253
else {
254254
r.all_comment_line = false;
@@ -259,7 +259,7 @@ auto process_cpp_line(
259259
i+=2;
260260
if (i < ssize(line) - 1) {
261261
if (auto paren_pos = line.find("(", i); paren_pos != std::string::npos) {
262-
d_char_sequence = ")"+line.substr(i, paren_pos-i)+"\"";
262+
raw_string_closing_seq = ")"+line.substr(i, paren_pos-i)+"\"";
263263
in_raw_string_literal = true;
264264
}
265265
}
@@ -463,7 +463,7 @@ class source
463463
auto in_comment = false;
464464
auto in_string_literal = false;
465465
auto in_raw_string_literal = false;
466-
std::string d_char_sequence;
466+
std::string raw_string_closing_seq;
467467

468468
auto brace_depth = std::vector<int>();
469469

@@ -538,7 +538,7 @@ class source
538538
in_comment,
539539
in_string_literal,
540540
in_raw_string_literal,
541-
d_char_sequence,
541+
raw_string_closing_seq,
542542
brace_depth,
543543
std::ssize(lines) - 1,
544544
errors

0 commit comments

Comments
 (0)