        if (!ok) {
            int index1 = range_index(preproc_ranges, i);
            int index2 = range_index(singleline_comment_ranges, i);
            int index3 = range_index(multiline_comment_ranges, i);
            if (index1 > -1) {
                i = preproc_ranges[index1].second + 1;
            } else if (index2 > -1) {
                i = singleline_comment_ranges[index2].second + 1;
            } else if (index3 > -1) {
                i = multiline_comment_ranges[index3].second + 1;
            } else {
                i = i + 1;
            }