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