QScintilla/Lexers/LexerCPP.py

branch
sub_styles
changeset 6846
6ca9ef2c0907
parent 6845
4680adb641e0
child 6855
4d80c8cc99a1
equal deleted inserted replaced
6845:4680adb641e0 6846:6ca9ef2c0907
48 48
49 # list of style numbers, that support sub-styling 49 # list of style numbers, that support sub-styling
50 self.baseStyles = [11, 17, 75, 81] 50 self.baseStyles = [11, 17, 75, 81]
51 51
52 self.defaultSubStyles = { 52 self.defaultSubStyles = {
53 11: { 53 11: [
54 "SubStyleLength": 1, 54 {
55 "SubStyles": [ 55 "Description": QCoreApplication.translate(
56 { 56 "LexerCPP", "Extra Identifiers"),
57 "Description": QCoreApplication.translate( 57 "Words": "std map string vector",
58 "LexerCPP", "Extra Identifiers"), 58 "Style": {
59 "Words": "std map string vector", 59 "fore": 0xEE00AA,
60 "Style": { 60 }
61 "fore": 0xEE00AA, 61 },
62 } 62 ],
63 }, 63 17: [
64 ] 64 {
65 }, 65 "Description": QCoreApplication.translate(
66 17: { 66 "LexerCPP", "Extra Doc Comment Keywords"),
67 "SubStyleLength": 1, 67 "Words": "check",
68 "SubStyles": [ 68 "Style": {
69 { 69 "fore": 0x00AAEE,
70 "Description": QCoreApplication.translate( 70 }
71 "LexerCPP", "Extra Doc Comment Keywords"), 71 },
72 "Words": "check", 72 ],
73 "Style": { 73 75: [
74 "fore": 0x00AAEE, 74 {
75 } 75 "Description": QCoreApplication.translate(
76 }, 76 "LexerCPP", "Inactive Extra Identifiers"),
77 ] 77 "Words": "std map string vector",
78 }, 78 "Style": {
79 75: { 79 "fore": 0xBB6666,
80 "SubStyleLength": 1, 80 }
81 "SubStyles": [ 81 },
82 { 82 ],
83 "Description": QCoreApplication.translate( 83 81: [
84 "LexerCPP", "Inactive Extra Identifiers"), 84 {
85 "Words": "std map string vector", 85 "Description": QCoreApplication.translate(
86 "Style": { 86 "LexerCPP", "Inactive Extra Doc Comment Keywords"),
87 "fore": 0xBB6666, 87 "Words": "check",
88 } 88 "Style": {
89 }, 89 "fore": 0x6699AA,
90 ] 90 }
91 }, 91 },
92 81: { 92 ],
93 "SubStyleLength": 1,
94 "SubStyles": [
95 {
96 "Description": QCoreApplication.translate(
97 "LexerCPP", "Inactive Extra Doc Comment Keywords"),
98 "Words": "check",
99 "Style": {
100 "fore": 0x6699AA,
101 }
102 },
103 ]
104 },
105 } 93 }
106 94
107 def initProperties(self): 95 def initProperties(self):
108 """ 96 """
109 Public slot to initialize the properties. 97 Public slot to initialize the properties.

eric ide

mercurial