40 return QColor(0x00, 0x00, 0x00);
43 return QColor(0xad, 0xad, 0xad);
46 return QColor(0x80, 0x00, 0x00);
48 case DoubleQuotedString:
49 case SingleQuotedString:
50 return QColor(0x00, 0xaa, 0x00);
52 case DoubleQuotedFString:
53 case SingleQuotedFString:
54 return QColor(0x00, 0xaa, 0x00);
57 return QColor(0x00, 0x00, 0xff);
59 case TripleSingleQuotedString:
60 case TripleDoubleQuotedString:
61 return QColor(0x00, 0xaa, 0x00);
63 case TripleSingleQuotedFString:
64 case TripleDoubleQuotedFString:
65 return QColor(0x00, 0xaa, 0x00);
68 return QColor(0x00, 0x00, 0x00);
70 case FunctionMethodName:
71 return QColor(0x00, 0x7f, 0x7f);
75 return QColor(0x00, 0x00, 0x00);
78 return QColor(0xad, 0xad, 0xad);
81 return QColor(0x00, 0x00, 0x00);
83 case HighlightedIdentifier:
84 return QColor(0x40, 0x70, 0x90);
87 return QColor(0x80, 0x50, 0x00);
90 return QsciLexer::defaultColor(style);
101 return QColor(0xFF, 0xFF, 0xFF);
104 return QColor(0x72, 0x86, 0xB7);
107 return QColor(0xFF, 0xC6, 0x8F);
109 case DoubleQuotedString:
110 case SingleQuotedString:
111 return QColor(0x98, 0xC3, 0x78);
113 case DoubleQuotedFString:
114 case SingleQuotedFString:
115 return QColor(0xE0, 0x6D, 0x76);
118 return QColor(0xC6, 0x78, 0xDD);
120 case TripleSingleQuotedString:
121 case TripleDoubleQuotedString:
122 return QColor(0xCE, 0x91, 0x78);
124 case TripleSingleQuotedFString:
125 case TripleDoubleQuotedFString:
126 return QColor(0xE0, 0x6D, 0x76);
129 return QColor(0xFF, 0xEE, 0xAE);
131 case FunctionMethodName:
132 return QColor(0xBB, 0xDA, 0xFF);
135 return QColor(0x99, 0xFF, 0xFF);
138 return QColor(0xFF, 0xFF, 0xFF);
141 return QColor(0xad, 0xad, 0xad);
144 return QColor(0xFF, 0xFF, 0xFF);
146 case HighlightedIdentifier:
147 return QColor(0x00, 0x3F, 0x8E);
150 return QColor(0xDC, 0xDC, 0xAA);
153 return QsciLexer::defaultColor(style);
174 const char *defaultKeywords = QsciLexerPython::keywords(1);
175 static std::string combinedKeywords;
176 std::ostringstream stream;
179 combinedKeywords = stream.str();
180 return combinedKeywords.c_str();
183 return QsciLexerPython::keywords(set);