43 self.baseStyles = [11] |
42 self.baseStyles = [11] |
44 |
43 |
45 self.defaultSubStyles = { |
44 self.defaultSubStyles = { |
46 11: { |
45 11: { |
47 0: { |
46 0: { |
48 "Description": QCoreApplication.translate( |
47 "Description": self.tr("Standard Library Modules"), |
49 "LexerPython", "Standard Library Modules"), |
|
50 "Words": """ |
48 "Words": """ |
51 __main__ _dummy_thread _thread abc aifc argparse array ast asynchat asyncio |
49 __main__ _dummy_thread _thread abc aifc argparse array ast asynchat asyncio |
52 asyncore atexit audioop base64 bdb binascii binhex bisect builtins bz2 |
50 asyncore atexit audioop base64 bdb binascii binhex bisect builtins bz2 |
53 calendar cgi cgitb chunk cmath cmd code codecs codeop collections colorsys |
51 calendar cgi cgitb chunk cmath cmd code codecs codeop collections colorsys |
54 compileall concurrent configparser contextlib copy copyreg crypt csv ctypes |
52 compileall concurrent configparser contextlib copy copyreg crypt csv ctypes |
55 curses datetime dbm decimal difflib dis distutils dummy_threading email |
53 curses datetime dbm decimal difflib dis distutils dummy_threading email |
56 ensurepip enum errno faulthandler fcntl filecmp fileinput fnmatch formatter |
54 ensurepip enum errno faulthandler fcntl filecmp fileinput fnmatch formatter |
72 "fore": 0xDD9900, |
70 "fore": 0xDD9900, |
73 "font_bold": True, |
71 "font_bold": True, |
74 } |
72 } |
75 }, |
73 }, |
76 1: { |
74 1: { |
77 "Description": QCoreApplication.translate( |
75 "Description": self.tr("__future__ Imports"), |
78 "LexerPython", "__future__ Imports"), |
|
79 "Words": """ |
76 "Words": """ |
80 __future__ with_statement unicode_literals print_function division |
77 __future__ with_statement unicode_literals print_function division |
81 absolute_import generator_stop annotations""", |
78 absolute_import generator_stop annotations""", |
82 "Style": { |
79 "Style": { |
83 "fore": 0xEE00AA, |
80 "fore": 0xEE00AA, |
84 "font_italic": True, |
81 "font_italic": True, |
85 } |
82 } |
86 } |
83 }, |
|
84 2: { |
|
85 "Description": self.tr("PyQt5 Modules"), |
|
86 "Words": """ |
|
87 PyQt5 Qsci Qt QtCore QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras |
|
88 QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL |
|
89 QtPositioning QtPrintSupport QtQml QtQuick QtQuickWidgets QtRemoteObjects |
|
90 QtSensors QtSerialPort QtSql QtSvg QtTest QtWebChannel QtWebEngine |
|
91 QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras |
|
92 QtX11Extras QtXml QtXmlPatterns sip QtWebKit QtWebKitWidgets""", |
|
93 "Style": { |
|
94 "fore": 0x44AADD, |
|
95 "font_bold": True, |
|
96 } |
|
97 }, |
87 }, |
98 }, |
88 } |
99 } |
89 |
100 |
90 def language(self): |
101 def language(self): |
91 """ |
102 """ |