c_ext/CFileEditor.py
changeset 1784 64beb9e9c749
parent 1782 5b6ad7a7fd9d
child 1881 091005ec69c4
--- a/c_ext/CFileEditor.py	Mon Aug 21 20:17:19 2017 +0000
+++ b/c_ext/CFileEditor.py	Mon Aug 21 23:22:58 2017 +0300
@@ -27,22 +27,23 @@
 from controls.CustomStyledTextCtrl import faces
 from editors.CodeFileEditor import CodeFileEditor, CodeEditor
 
+
 class CppEditor(CodeEditor):
 
-    KEYWORDS = ["asm", "auto", "bool", "break", "case", "catch", "char", "class", 
-        "const", "const_cast", "continue", "default", "delete", "do", "double", 
-        "dynamic_cast", "else", "enum", "explicit", "export", "extern", "false", 
-        "float", "for", "friend", "goto", "if", "inline", "int", "long", "mutable", 
-        "namespace", "new", "operator", "private", "protected", "public", "register", 
-        "reinterpret_cast", "return", "short", "signed", "sizeof", "static", 
-        "static_cast", "struct", "switch", "template", "this", "throw", "true", "try",
-        "typedef", "typeid", "typename", "union", "unsigned", "using", "virtual", 
-        "void", "volatile", "wchar_t", "while"]
+    KEYWORDS = ["asm", "auto", "bool", "break", "case", "catch", "char", "class",
+                "const", "const_cast", "continue", "default", "delete", "do", "double",
+                "dynamic_cast", "else", "enum", "explicit", "export", "extern", "false",
+                "float", "for", "friend", "goto", "if", "inline", "int", "long", "mutable",
+                "namespace", "new", "operator", "private", "protected", "public", "register",
+                "reinterpret_cast", "return", "short", "signed", "sizeof", "static",
+                "static_cast", "struct", "switch", "template", "this", "throw", "true", "try",
+                "typedef", "typeid", "typename", "union", "unsigned", "using", "virtual",
+                "void", "volatile", "wchar_t", "while"]
     COMMENT_HEADER = "/"
-    
+
     def SetCodeLexer(self):
         self.SetLexer(stc.STC_LEX_CPP)
-        
+
         self.StyleSetSpec(stc.STC_C_COMMENT, 'fore:#408060,size:%(size)d' % faces)
         self.StyleSetSpec(stc.STC_C_COMMENTLINE, 'fore:#408060,size:%(size)d' % faces)
         self.StyleSetSpec(stc.STC_C_COMMENTDOC, 'fore:#408060,size:%(size)d' % faces)
@@ -53,15 +54,12 @@
         self.StyleSetSpec(stc.STC_C_OPERATOR, 'bold,size:%(size)d' % faces)
         self.StyleSetSpec(stc.STC_C_STRINGEOL, 'back:#FFD5FF,size:%(size)d' % faces)
 
-#-------------------------------------------------------------------------------
-#                          CFileEditor Main Frame Class
-#-------------------------------------------------------------------------------
 
 class CFileEditor(CodeFileEditor):
-    
+    """
+    CFileEditor Main Frame Class
+    """
+
     CONFNODEEDITOR_TABS = [
         (_("C code"), "_create_CodePanel")]
     CODE_EDITOR = CppEditor
-
-
-