[bim] fix make syntax highlighting issue

This commit is contained in:
K. Lange 2018-09-17 16:24:52 +09:00
parent 75c26ed850
commit ad3ce212f0
1 changed files with 2 additions and 1 deletions

View File

@ -1018,7 +1018,8 @@ static int syn_make_extended(line_t * line, int i, int c, int last, int * out_le
for (int s = 0; syn_make_functions[s]; ++s) {
int d = 0;
while (j + d < line->actual && line->text[j+d].codepoint == syn_make_functions[s][d]) d++;
if (syn_make_functions[s][d] == '\0') {
if (syn_make_functions[s][d] == '\0' && (j + d == line->actual
|| line->text[j+d].codepoint == ')' || line->text[j+d].codepoint == ' ')) {
*out_left = d;
return FLAG_KEYWORD;
}