diff -r 4680adb641e0 -r 6ca9ef2c0907 QScintilla/Lexers/LexerPython.py --- a/QScintilla/Lexers/LexerPython.py Sat Mar 09 17:36:44 2019 +0100 +++ b/QScintilla/Lexers/LexerPython.py Sat Mar 09 18:44:13 2019 +0100 @@ -43,13 +43,11 @@ self.baseStyles = [11] self.defaultSubStyles = { - 11: { - "SubStyleLength": 2, - "SubStyles": [ - { - "Description": QCoreApplication.translate( - "LexerPython", "Standard Library Modules"), - "Words": """ + 11: [ + { + "Description": QCoreApplication.translate( + "LexerPython", "Standard Library Modules"), + "Words": """ __main__ _dummy_thread _thread abc aifc argparse array ast asynchat asyncio asyncore atexit audioop base64 bdb binascii binhex bisect builtins bz2 calendar cgi cgitb chunk cmath cmd code codecs codeop collections colorsys @@ -60,34 +58,33 @@ hashlib heapq hmac html http http imaplib imghdr importlib inspect io ipaddress itertools json keyword linecache locale logging lzma macpath mailbox mailcap marshal math mimetypes mmap modulefinder msilib msvcrt - multiprocessing netrc nis nntplib numbers operator os os.path ossaudiodev - parser pathlib pdb pickle pickletools pipes pkgutil platform plistlib - poplib posix pprint pty pwd py_compile pyclbr queue quopri random re readline - reprlib resource rlcompleter runpy sched select selectors shelve shlex shutil - signal site smtpd smtplib sndhdr socket socketserver spwd sqlite3 ssl stat - statistics string stringprep struct subprocess sunau symbol symtable sys - sysconfig syslog tabnanny tarfile telnetlib tempfile termios textwrap - threading time timeit tkinter token tokenize trace traceback tracemalloc tty - turtle types unicodedata unittest urllib uu uuid venv warnings wave weakref - webbrowser winreg winsound wsgiref xdrlib xml xmlrpc zipfile zipimport - zlib""", - "Style": { - "fore": 0xDD9900, - } - }, - { - "Description": QCoreApplication.translate( - "LexerPython", "__future__ Imports"), - "Words": """ + multiprocessing netrc nis nntplib numbers operator os ossaudiodev parser path + pathlib pdb pickle pickletools pipes pkgutil platform plistlib poplib posix + pprint pty pwd py_compile pyclbr queue quopri random re readline reprlib + resource rlcompleter runpy sched select selectors shelve shlex shutil signal + site smtpd smtplib sndhdr socket socketserver spwd sqlite3 ssl stat statistics + string stringprep struct subprocess sunau symbol symtable sys sysconfig syslog + tabnanny tarfile telnetlib tempfile termios textwrap threading time timeit + tkinter token tokenize trace traceback tracemalloc tty turtle types + unicodedata unittest urllib uu uuid venv warnings wave weakref webbrowser + winreg winsound wsgiref xdrlib xml xmlrpc zipfile zipimport zlib""", + "Style": { + "fore": 0xDD9900, + "font_bold": True, + } + }, + { + "Description": QCoreApplication.translate( + "LexerPython", "__future__ Imports"), + "Words": """ __future__ with_statement unicode_literals print_function division absolute_import generator_stop annotations""", - "Style": { - "fore": 0xEE00AA, - "font_italic": True, - } + "Style": { + "fore": 0xEE00AA, + "font_italic": True, } - ] - }, + } + ] } def language(self):