Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pygments/styles/xcode.py: 75%

4 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-03-26 06:07 +0000

1""" 

2 pygments.styles.xcode 

3 ~~~~~~~~~~~~~~~~~~~~~ 

4 

5 Style similar to the `Xcode` default theme. 

6 

7 :copyright: Copyright 2006-2022 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 

16class XcodeStyle(Style): 

17 """ 

18 Style similar to the Xcode default colouring theme. 

19 """ 

20 

21 styles = { 

22 Comment: '#177500', 

23 Comment.Preproc: '#633820', 

24 

25 String: '#C41A16', 

26 String.Char: '#2300CE', 

27 

28 Operator: '#000000', 

29 

30 Keyword: '#A90D91', 

31 

32 Name: '#000000', 

33 Name.Attribute: '#836C28', 

34 Name.Class: '#3F6E75', 

35 Name.Function: '#000000', 

36 Name.Builtin: '#A90D91', 

37 # In Obj-C code this token is used to colour Cocoa types 

38 Name.Builtin.Pseudo: '#5B269A', 

39 Name.Variable: '#000000', 

40 Name.Tag: '#000000', 

41 Name.Decorator: '#000000', 

42 # Workaround for a BUG here: lexer treats multiline method signatres as labels 

43 Name.Label: '#000000', 

44 

45 Literal: '#1C01CE', 

46 Number: '#1C01CE', 

47 Error: '#000000', 

48 }