diff --git a/tte.c b/tte.c index 60a9966..e0e180c 100644 --- a/tte.c +++ b/tte.c @@ -174,10 +174,10 @@ typedef enum ActionType ActionType; char* C_HL_extensions[] = {".c", ".h", ".cpp", ".hpp", ".cc", NULL}; // Array must be terminated with NULL. char* JAVA_HL_extensions[] = {".java", NULL}; -char* PYTHON_HL_extensions[] = {".py", NULL}; +char* PYTHON_HL_extensions[] = {".py",".pyw",".py3",".pyc",".pyo", NULL}; char* BASH_HL_extensions[] = {".sh", NULL}; char* JS_HL_extensions[] = {".js", ".jsx", NULL}; -char* PHP_HL_extensions[] = {".php", NULL}; +char* PHP_HL_extensions[] = {".php",".phtml", NULL}; char* JSON_HL_extensions[] = {".json", ".jsonp", NULL}; char* XML_HL_extensions[] = {".xml", NULL}; char* SQL_HL_extensions[] = {".sql", NULL}; @@ -185,10 +185,16 @@ 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", "asm" /* in stdbool.h */ , "bool" , "true" , "fasle" , "inline" , + + // 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 @@ -347,6 +353,7 @@ struct editor_syntax HL_DB[] = { "//", "/*", "*/", + "#", HL_HIGHLIGHT_NUMBERS | HL_HIGHLIGHT_STRINGS }, {