mirror of https://github.com/buggins/dlangide.git
fix #52
This commit is contained in:
parent
1db889fb53
commit
91d0f4e643
|
@ -557,7 +557,7 @@ class SimpleDSyntaxSupport : SyntaxSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
// fill with category
|
// fill with category
|
||||||
for (int i = tokenLine; i <= newLine; i++) {
|
for (int i = tokenLine; i <= newLine && i < lines.length; i++) {
|
||||||
int start = i > tokenLine ? 0 : tokenPos;
|
int start = i > tokenLine ? 0 : tokenPos;
|
||||||
int end = i < newLine ? cast(int)lines[i].length : newPos;
|
int end = i < newLine ? cast(int)lines[i].length : newPos;
|
||||||
for (int j = start; j < end; j++) {
|
for (int j = start; j < end; j++) {
|
||||||
|
|
Loading…
Reference in New Issue