From 85944ac37bd407da951f92b163c7bf0204bbb33c Mon Sep 17 00:00:00 2001 From: PooiaFerdowsi Date: Mon, 31 May 2021 16:29:56 +0430 Subject: [PATCH] support C++ keywords --- tte.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tte.c b/tte.c index 30821e4..312f97e 100644 --- a/tte.c +++ b/tte.c @@ -185,9 +185,15 @@ char* RUBY_HL_extensions[] = {".rb", NULL}; char* C_HL_keywords[] = { "switch", "if", "while", "for", "break", "continue", "return", "else", - "struct", "union", "typedef", "static", "enum", "class", "case", "#include", + "struct", "union", "typedef", "static", "enum", "case", "#include", "volatile", "register", "sizeof", "typedef", "union", "goto", "const", "auto", "#define", "#if", "#endif", "#error", "#ifdef", "#ifndef", "#undef", + + // C++ + "class" , "namespace" , "using" , "catch" , "delete" , "explicit" , + "export" , "friend" , "mutable" , "new" , "public" , "protected" , + "private" , "operator" , "this" , "template" , "virtual" , "throw" , + "try" , "typeid" , "int|", "long|", "double|", "float|", "char|", "unsigned|", "signed|", "void|", "bool|", NULL