QScintilla/Lexers/LexerCPP.py

branch
sub_styles
changeset 6846
6ca9ef2c0907
parent 6845
4680adb641e0
child 6855
4d80c8cc99a1
--- a/QScintilla/Lexers/LexerCPP.py	Sat Mar 09 17:36:44 2019 +0100
+++ b/QScintilla/Lexers/LexerCPP.py	Sat Mar 09 18:44:13 2019 +0100
@@ -50,58 +50,46 @@
         self.baseStyles = [11, 17, 75, 81]
         
         self.defaultSubStyles = {
-            11: {
-                "SubStyleLength": 1,
-                "SubStyles": [
-                    {
-                        "Description": QCoreApplication.translate(
-                            "LexerCPP", "Extra Identifiers"),
-                        "Words": "std map string vector",
-                        "Style": {
-                            "fore": 0xEE00AA,
-                        }
-                    },
-                ]
-            },
-            17: {
-                "SubStyleLength": 1,
-                "SubStyles": [
-                    {
-                        "Description": QCoreApplication.translate(
-                            "LexerCPP", "Extra Doc Comment Keywords"),
-                        "Words": "check",
-                        "Style": {
-                            "fore": 0x00AAEE,
-                        }
-                    },
-                ]
-            },
-            75: {
-                "SubStyleLength": 1,
-                "SubStyles": [
-                    {
-                        "Description": QCoreApplication.translate(
-                            "LexerCPP", "Inactive Extra Identifiers"),
-                        "Words": "std map string vector",
-                        "Style": {
-                            "fore": 0xBB6666,
-                        }
-                    },
-                ]
-            },
-            81: {
-                "SubStyleLength": 1,
-                "SubStyles": [
-                    {
-                        "Description": QCoreApplication.translate(
-                            "LexerCPP", "Inactive Extra Doc Comment Keywords"),
-                        "Words": "check",
-                        "Style": {
-                            "fore": 0x6699AA,
-                        }
-                    },
-                ]
-            },
+            11: [
+                {
+                    "Description": QCoreApplication.translate(
+                        "LexerCPP", "Extra Identifiers"),
+                    "Words": "std map string vector",
+                    "Style": {
+                        "fore": 0xEE00AA,
+                    }
+                },
+            ],
+            17: [
+                {
+                    "Description": QCoreApplication.translate(
+                        "LexerCPP", "Extra Doc Comment Keywords"),
+                    "Words": "check",
+                    "Style": {
+                        "fore": 0x00AAEE,
+                    }
+                },
+            ],
+            75: [
+                {
+                    "Description": QCoreApplication.translate(
+                        "LexerCPP", "Inactive Extra Identifiers"),
+                    "Words": "std map string vector",
+                    "Style": {
+                        "fore": 0xBB6666,
+                    }
+                },
+            ],
+            81: [
+                {
+                    "Description": QCoreApplication.translate(
+                        "LexerCPP", "Inactive Extra Doc Comment Keywords"),
+                    "Words": "check",
+                    "Style": {
+                        "fore": 0x6699AA,
+                    }
+                },
+            ],
         }
 
     def initProperties(self):

eric ide

mercurial