Skip to content

Commit

Permalink
Allow '' in strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ibara committed Apr 19, 2021
1 parent 5b78373 commit 9fea6fc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,16 @@ static void parse(string line) {
i++;
for (; i < line.length; i++) {
if (line[i] == '\'') {
auto strend = i;
a1 = line[(a1start + 1)..strend];
break;
if (i != line.length - 1 && line[i + 1] == '\'') {
a1 ~= '\'';
i++;
continue;
} else {
break;
}
}

a1 ~= line[i];
}

if (line[i] != '\'')
Expand Down

0 comments on commit 9fea6fc

Please sign in to comment.