mirror of https://github.com/buggins/dlangide.git
Fix appending string to dchar[]
This commit is contained in:
parent
6dd80be82d
commit
0cf500d6b3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue