[bim] fix an accidental off-by-one closing comments

This commit is contained in:
K. Lange 2018-08-17 22:30:27 +09:00
parent 626e3557cd
commit 3b9a8c18c7

View File

@ -332,7 +332,7 @@ static int syn_c_extended(line_t * line, int i, int c, int last, int * out_left)
if (i < line->actual - 1 && line->text[i+1].codepoint == '*') {
int last = 0;
for (int j = i + 2; j < line->actual - 1; ++j) {
for (int j = i + 2; j < line->actual; ++j) {
int c = line->text[j].codepoint;
if (c == '/' && last == '*') {
*out_left = j - i;