Merge pull request #30 from MrSmith33/master

Fix appending string to dchar[]
This commit is contained in:
Vadim Lopatin 2015-02-17 09:00:39 +03:00
commit e589569941
1 changed files with 3 additions and 3 deletions

View File

@ -297,7 +297,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter {
res ~= ch; res ~= ch;
x = newX; x = newX;
} }
res ~= "//"; res ~= "//"d;
x += 2; x += 2;
} else { } else {
res ~= ch; res ~= ch;
@ -306,7 +306,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter {
} else { } else {
if (!commented && x == commentX) { if (!commented && x == commentX) {
commented = true; commented = true;
res ~= "//"; res ~= "//"d;
res ~= ch; res ~= ch;
x += 3; x += 3;
} else { } else {
@ -318,7 +318,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter {
if (!commented) { if (!commented) {
for (; x < commentX; x++) for (; x < commentX; x++)
res ~= ' '; res ~= ' ';
res ~= "//"; res ~= "//"d;
} }
return cast(dstring)res; return cast(dstring)res;
} }