QScintilla/Lexers/LexerPython.py

branch
sub_styles
changeset 6855
4d80c8cc99a1
parent 6846
6ca9ef2c0907
child 6872
96bb40e987f7
equal deleted inserted replaced
6854:f4dd76230eea 6855:4d80c8cc99a1
41 41
42 # list of style numbers, that support sub-styling 42 # list of style numbers, that support sub-styling
43 self.baseStyles = [11] 43 self.baseStyles = [11]
44 44
45 self.defaultSubStyles = { 45 self.defaultSubStyles = {
46 11: [ 46 11: {
47 { 47 0: {
48 "Description": QCoreApplication.translate( 48 "Description": QCoreApplication.translate(
49 "LexerPython", "Standard Library Modules"), 49 "LexerPython", "Standard Library Modules"),
50 "Words": """ 50 "Words": """
51 __main__ _dummy_thread _thread abc aifc argparse array ast asynchat asyncio 51 __main__ _dummy_thread _thread abc aifc argparse array ast asynchat asyncio
52 asyncore atexit audioop base64 bdb binascii binhex bisect builtins bz2 52 asyncore atexit audioop base64 bdb binascii binhex bisect builtins bz2
71 "Style": { 71 "Style": {
72 "fore": 0xDD9900, 72 "fore": 0xDD9900,
73 "font_bold": True, 73 "font_bold": True,
74 } 74 }
75 }, 75 },
76 { 76 1: {
77 "Description": QCoreApplication.translate( 77 "Description": QCoreApplication.translate(
78 "LexerPython", "__future__ Imports"), 78 "LexerPython", "__future__ Imports"),
79 "Words": """ 79 "Words": """
80 __future__ with_statement unicode_literals print_function division 80 __future__ with_statement unicode_literals print_function division
81 absolute_import generator_stop annotations""", 81 absolute_import generator_stop annotations""",
82 "Style": { 82 "Style": {
83 "fore": 0xEE00AA, 83 "fore": 0xEE00AA,
84 "font_italic": True, 84 "font_italic": True,
85 } 85 }
86 } 86 }
87 ] 87 },
88 } 88 }
89 89
90 def language(self): 90 def language(self):
91 """ 91 """
92 Public method to get the lexer language. 92 Public method to get the lexer language.

eric ide

mercurial