From f1eb966787b66848a771d252ab2822506100e5c6 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 12 Nov 2018 11:00:49 +0900 Subject: [PATCH] bim: fixup conf syntax --- apps/bim.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/bim.c b/apps/bim.c index e587051b..002e5139 100644 --- a/apps/bim.c +++ b/apps/bim.c @@ -1328,17 +1328,17 @@ static char * syn_rust_ext[] = {".rs",NULL}; static int syn_conf_extended(line_t * line, int i, int c, int last, int * out_left) { (void)last; - if (c == ';') { - *out_left = (line->actual + 1) - i; - return FLAG_COMMENT; - } - - if (c == '[') { - *out_left = (line->actual + 1) - i; - return FLAG_KEYWORD; - } - if (i == 0) { + if (c == ';') { + *out_left = (line->actual + 1) - i; + return FLAG_COMMENT; + } + + if (c == '[') { + *out_left = (line->actual + 1) - i; + return FLAG_KEYWORD; + } + int j = 0; for (; j < line->actual; ++j) { if (line->text[j].codepoint == '=') {