parent
540b1d75c4
commit
63196f5646
|
@ -71,6 +71,7 @@ class PythonGrammar(Grammar):
|
||||||
OverridePatternRule('comment', '#@@:(?P<token>[.a-zA-Z0-9_]+):(?P<mode>[.a-zA-Z0-9_]+) *$'),
|
OverridePatternRule('comment', '#@@:(?P<token>[.a-zA-Z0-9_]+):(?P<mode>[.a-zA-Z0-9_]+) *$'),
|
||||||
PatternRule('comment', '#.*$'),
|
PatternRule('comment', '#.*$'),
|
||||||
PatternRule('continuation', r'\\\n$'),
|
PatternRule('continuation', r'\\\n$'),
|
||||||
|
PatternRule('decorator', '@[a-zA-Z_][a-zA-Z0-9_]*'),
|
||||||
PatternRule('spaces', ' +'),
|
PatternRule('spaces', ' +'),
|
||||||
PatternRule('eol', r'\n$'),
|
PatternRule('eol', r'\n$'),
|
||||||
]
|
]
|
||||||
|
@ -559,6 +560,7 @@ class Python(mode.Fundamental):
|
||||||
colors = {
|
colors = {
|
||||||
'python.def': ('blue', 'default', 'bold'),
|
'python.def': ('blue', 'default', 'bold'),
|
||||||
'python.class': ('yellow', 'default', 'bold'),
|
'python.class': ('yellow', 'default', 'bold'),
|
||||||
|
'python.decorator': ('magenta', 'default'),
|
||||||
'python.reserved': ('magenta', 'default', 'bold'),
|
'python.reserved': ('magenta', 'default', 'bold'),
|
||||||
'python.keyword': ('cyan', 'default', 'bold'),
|
'python.keyword': ('cyan', 'default', 'bold'),
|
||||||
'python.builtin': ('cyan', 'default', 'bold'),
|
'python.builtin': ('cyan', 'default', 'bold'),
|
||||||
|
|
Loading…
Reference in New Issue