eric6/QScintilla/Lexers/LexerPython.py

changeset 8255
2fc483702cd6
parent 8243
cc717c2ae956
child 8259
2bbec88047dd
equal deleted inserted replaced
8254:259484b0fc75 8255:2fc483702cd6
48 self.defaultSubStyles = { 48 self.defaultSubStyles = {
49 11: { 49 11: {
50 0: { 50 0: {
51 "Description": self.tr("Standard Library Modules"), 51 "Description": self.tr("Standard Library Modules"),
52 "Words": """ 52 "Words": """
53 __main__ _dummy_thread _thread abc aifc argparse array ast asynchat asyncio 53 __main__ _dummy_thread _thread abc aifc argparse array ascii ast asynchat
54 asyncore atexit audioop base64 bdb binascii binhex bisect builtins bz2 54 asyncio asyncore atexit audioop base64 bdb binascii binhex bisect builtins bz2
55 calendar cgi cgitb chunk cmath cmd code codecs codeop collections colorsys 55 calendar cgi cgitb chunk cmath cmd code codecs codeop collections colorsys
56 compileall concurrent configparser contextlib copy copyreg crypt csv ctypes 56 compileall concurrent configparser contextlib contextvars copy copyreg
57 curses datetime dbm decimal difflib dis distutils dummy_threading email 57 cProfile crypt csv ctypes curses dataclasses datetime dbm decimal difflib dis
58 ensurepip enum errno faulthandler fcntl filecmp fileinput fnmatch formatter 58 distutils doctest email encodings ensurepip enum errno faulthandler fcntl
59 fpectl fractions ftplib functools gc getopt getpass gettext glob grp gzip 59 filecmp fileinput fnmatch formatter fractions ftplib functools gc getopt
60 hashlib heapq hmac html http http imaplib imghdr importlib inspect io 60 getpass gettext glob graphlib grp gzip hashlib heapq hmac html http imaplib
61 ipaddress itertools json keyword linecache locale logging lzma macpath 61 imghdr imp importlib inspect io ipaddress itertools json keyword lib2to3
62 mailbox mailcap marshal math mimetypes mmap modulefinder msilib msvcrt 62 linecache locale logging lzma mailbox mailcap marshal math mimetypes mmap
63 multiprocessing netrc nis nntplib numbers operator os ossaudiodev parser path 63 modulefinder msilib msvcrt multiprocessing netrc nis nntplib numbers opcode
64 pathlib pdb pickle pickletools pipes pkgutil platform plistlib poplib posix 64 operator optparse os ossaudiodev parser path pathlib pdb pickle pickletools
65 pprint pty pwd py_compile pyclbr queue quopri random re readline reprlib 65 pipes pkgutil platform plistlib poplib posix pprint profile pstats pty pwd
66 resource rlcompleter runpy sched select selectors shelve shlex shutil signal 66 py_compile pyclbr pydoc queue quopri random re readline reprlib resource
67 rlcompleter runpy sched secrets select selectors shelve shlex shutil signal
67 site smtpd smtplib sndhdr socket socketserver spwd sqlite3 ssl stat statistics 68 site smtpd smtplib sndhdr socket socketserver spwd sqlite3 ssl stat statistics
68 string stringprep struct subprocess sunau symbol symtable sys sysconfig syslog 69 string stringprep struct subprocess sunau symbol symtable sys sysconfig syslog
69 tabnanny tarfile telnetlib tempfile termios textwrap threading time timeit 70 tabnanny tarfile telnetlib tempfile termios test textwrap threading time
70 tkinter token tokenize trace traceback tracemalloc tty turtle types 71 timeit tkinter token tokenize trace traceback tracemalloc tty turtle
71 unicodedata unittest urllib uu uuid venv warnings wave weakref webbrowser 72 turtledemo types typing unicodedata unittest urllib uu uuid venv warnings wave
72 winreg winsound wsgiref xdrlib xml xmlrpc zipfile zipimport zlib""", 73 weakref webbrowser winreg winsound wsgiref xdrlib xml xmlrpc zipapp zipfile
74 zipimport zlib zoneinfo""",
73 "Style": { 75 "Style": {
74 "fore": 0xDD9900, 76 "fore": 0xDD9900,
75 "font_bold": True, 77 "font_bold": True,
76 } 78 }
77 }, 79 },
78 1: { 80 1: {
79 "Description": self.tr("__future__ Imports"), 81 "Description": self.tr("__future__ Imports"),
80 "Words": """ 82 "Words": """
81 __future__ with_statement unicode_literals print_function division 83 __future__ absolute_import annotations division generators generator_stop
82 absolute_import generator_stop annotations""", 84 nested_scopes print_function unicode_literals with_statement""",
83 "Style": { 85 "Style": {
84 "fore": 0xEE00AA, 86 "fore": 0xEE00AA,
85 "font_italic": True, 87 "font_italic": True,
86 } 88 }
87 }, 89 },
88 2: { 90 2: {
89 "Description": self.tr("PyQt5 Modules"), 91 "Description": self.tr("PyQt5/6 Modules"),
90 "Words": """ 92 "Words": """
91 PyQt5 Qsci Qt QtCore QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras 93 PyQt5 PyQt6 Qsci Qt Qt3DAnimation Qt3DCore Qt3DExtras Qt3DInput Qt3DLogic
92 QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL 94 Qt3DRender QtBluetooth QtChart QtCore QtDataVisualization QtDBus QtDesigner
93 QtPositioning QtPrintSupport QtQml QtQuick QtQuickWidgets QtRemoteObjects 95 QtGui QtHelp QtLocation QtMacExtras QtMultimedia QtMultimediaWidgets QtNetwork
94 QtSensors QtSerialPort QtSql QtSvg QtTest QtWebChannel QtWebEngine 96 QtNetworkAuth QtNfc QtOpenGL QtOpenGLWidgets QtPositioning QtPrintSupport
95 QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras 97 QtPurchasing QtQml QtQuick QtQuick3D QtQuickWidgets QtRemoteObjects QtSensors
96 QtX11Extras QtXml QtXmlPatterns sip QtWebKit QtWebKitWidgets""", 98 QtSerialPort QtSql QtSvg QtSvgWidgets QtTest QtTextToSpeech QtWebChannel
99 QtWebEngine QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets
100 QtWinExtras QtX11Extras QtXml QtXmlPatterns sip""",
97 "Style": { 101 "Style": {
98 "fore": 0x44AADD, 102 "fore": 0x44AADD,
99 "font_bold": True, 103 "font_bold": True,
100 } 104 }
101 }, 105 },

eric ide

mercurial