vim-jp/vim-cpp

Incorrect highlighting

Werenter opened this issue · 1 comments

This code have a broken highlighting, without a plugin all good:

#include <stdio.h>

struct element {
	bool type;
	int polygon = 0;
	int polygon_size = 0;
};

int main(void) {
	int n, a, b;
	scanf("%i%i%i", &n, &a, &b);
	element **cartrige;
	cartrige = new element*[a];
	for(int j = 0; j<a;j++) {
		cartrige[j] = new element[b];
		for(int i = 0; i<b;i++) {
			char n;
			scanf("%c", &n);
			if(n == '.') {
				cartrige[j][n].type = true;
			} else {
				cartrige[j][n].type = false;
			}
		}
	}
	for(int j = 0; j<a;j++) {
		for(int i = 0; i<b;i++) {
			
		}
	}
	return 0;
}

With plugin:
изображение
Without:
изображение

Please ignore, it is incorrect repo