[bim] Add some C++ keywords

This commit is contained in:
K. Lange 2018-08-20 10:42:39 +09:00
parent 411ccf3794
commit 9ecaca151f
1 changed files with 3 additions and 1 deletions

View File

@ -446,6 +446,8 @@ static char * syn_c_keywords[] = {
"while","if","for","continue","return","break","switch","case","sizeof",
"struct","union","typedef","do","default","else","goto",
"alignas","alignof","offsetof",
/* C++ stuff */
"public","private","class","using","namespace",
NULL
};
@ -549,7 +551,7 @@ static int syn_c_extended(line_t * line, int i, int c, int last, int * out_left)
return 0;
}
char * syn_c_ext[] = {".c",".h",".cpp",".hpp",NULL};
char * syn_c_ext[] = {".c",".h",".cpp",".hpp",".c++",".h++",NULL};
static int syn_c_finish(line_t * line, int * left, int state) {
if (state == FLAG_COMMENT_ML) {