29 |
29 |
30 |
30 |
31 class CppEditor(CodeEditor): |
31 class CppEditor(CodeEditor): |
32 |
32 |
33 KEYWORDS = ["asm", "auto", "bool", "break", "case", "catch", "char", "class", |
33 KEYWORDS = ["asm", "auto", "bool", "break", "case", "catch", "char", "class", |
34 "const", "const_cast", "continue", "default", "delete", "do", "double", |
34 "const", "const_cast", "continue", "default", "delete", "do", "double", |
35 "dynamic_cast", "else", "enum", "explicit", "export", "extern", "false", |
35 "dynamic_cast", "else", "enum", "explicit", "export", "extern", "false", |
36 "float", "for", "friend", "goto", "if", "inline", "int", "long", "mutable", |
36 "float", "for", "friend", "goto", "if", "inline", "int", "long", "mutable", |
37 "namespace", "new", "operator", "private", "protected", "public", "register", |
37 "namespace", "new", "operator", "private", "protected", "public", "register", |
38 "reinterpret_cast", "return", "short", "signed", "sizeof", "static", |
38 "reinterpret_cast", "return", "short", "signed", "sizeof", "static", |
39 "static_cast", "struct", "switch", "template", "this", "throw", "true", "try", |
39 "static_cast", "struct", "switch", "template", "this", "throw", "true", "try", |
40 "typedef", "typeid", "typename", "union", "unsigned", "using", "virtual", |
40 "typedef", "typeid", "typename", "union", "unsigned", "using", "virtual", |
41 "void", "volatile", "wchar_t", "while"] |
41 "void", "volatile", "wchar_t", "while"] |
42 COMMENT_HEADER = "/" |
42 COMMENT_HEADER = "/" |
43 |
43 |
44 def SetCodeLexer(self): |
44 def SetCodeLexer(self): |
45 self.SetLexer(stc.STC_LEX_CPP) |
45 self.SetLexer(stc.STC_LEX_CPP) |
46 |
46 |