ThirdParty/Pygments/pygments/styles/xcode.py

changeset 4172
4f20dba37ab6
child 4697
c2e9bf425554
equal deleted inserted replaced
4170:8bc578136279 4172:4f20dba37ab6
1 # -*- coding: utf-8 -*-
2 """
3 pygments.styles.xcode
4 ~~~~~~~~~~~~~~~~~~~~~
5
6 Style similar to the `Xcode` default theme.
7
8 :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details.
10 """
11
12 from pygments.style import Style
13 from pygments.token import Keyword, Name, Comment, String, Error, \
14 Number, Operator, Literal
15
16
17 class XcodeStyle(Style):
18 """
19 Style similar to the Xcode default colouring theme.
20 """
21
22 default_style = ''
23
24 styles = {
25 Comment: '#177500',
26 Comment.Preproc: '#633820',
27
28 String: '#C41A16',
29 String.Char: '#2300CE',
30
31 Operator: '#000000',
32
33 Keyword: '#A90D91',
34
35 Name: '#000000',
36 Name.Attribute: '#836C28',
37 Name.Class: '#3F6E75',
38 Name.Function: '#000000',
39 Name.Builtin: '#A90D91',
40 # In Obj-C code this token is used to colour Cocoa types
41 Name.Builtin.Pseudo: '#5B269A',
42 Name.Variable: '#000000',
43 Name.Tag: '#000000',
44 Name.Decorator: '#000000',
45 # Workaround for a BUG here: lexer treats multiline method signatres as labels
46 Name.Label: '#000000',
47
48 Literal: '#1C01CE',
49 Number: '#1C01CE',
50 Error: '#000000',
51 }

eric ide

mercurial