ThirdParty/Pygments/pygments/styles/arduino.py

changeset 4697
c2e9bf425554
child 5713
6762afd9f963
equal deleted inserted replaced
4696:bf4d19a7cade 4697:c2e9bf425554
1 # -*- coding: utf-8 -*-
2 """
3 pygments.styles.arduino
4 ~~~~~~~~~~~~~~~~~~~~~~~
5
6 Arduino® Syntax highlighting style.
7
8 :copyright: Copyright 2006-2015 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, Generic, Whitespace
15
16
17 class ArduinoStyle(Style):
18 """
19 The Arduino® language style. This style is designed to highlight the
20 Arduino source code, so exepect the best results with it.
21 """
22
23 background_color = "#ffffff"
24 default_style = ""
25
26 styles = {
27 Whitespace: "", # class: 'w'
28 Error: "#a61717", # class: 'err'
29
30 Comment: "#95a5a6", # class: 'c'
31 Comment.Multiline: "", # class: 'cm'
32 Comment.Preproc: "#434f54", # class: 'cp'
33 Comment.Single: "", # class: 'c1'
34 Comment.Special: "", # class: 'cs'
35
36 Keyword: "#728E00", # class: 'k'
37 Keyword.Constant: "#00979D", # class: 'kc'
38 Keyword.Declaration: "", # class: 'kd'
39 Keyword.Namespace: "", # class: 'kn'
40 Keyword.Pseudo: "#00979D", # class: 'kp'
41 Keyword.Reserved: "", # class: 'kr'
42 Keyword.Type: "#00979D", # class: 'kt'
43
44 Operator: "#434f54", # class: 'o'
45 Operator.Word: "", # class: 'ow'
46
47 Name: "#434f54", # class: 'n'
48 Name.Attribute: "", # class: 'na'
49 Name.Builtin: "", # class: 'nb'
50 Name.Builtin.Pseudo: "", # class: 'bp'
51 Name.Class: "", # class: 'nc'
52 Name.Constant: "", # class: 'no'
53 Name.Decorator: "", # class: 'nd'
54 Name.Entity: "", # class: 'ni'
55 Name.Exception: "", # class: 'ne'
56 Name.Function: "#D35400", # class: 'nf'
57 Name.Property: "", # class: 'py'
58 Name.Label: "", # class: 'nl'
59 Name.Namespace: "", # class: 'nn'
60 Name.Other: "#728E00", # class: 'nx'
61 Name.Tag: "", # class: 'nt'
62 Name.Variable: "", # class: 'nv'
63 Name.Variable.Class: "", # class: 'vc'
64 Name.Variable.Global: "", # class: 'vg'
65 Name.Variable.Instance: "", # class: 'vi'
66
67 Number: "#434f54", # class: 'm'
68 Number.Float: "", # class: 'mf'
69 Number.Hex: "", # class: 'mh'
70 Number.Integer: "", # class: 'mi'
71 Number.Integer.Long: "", # class: 'il'
72 Number.Oct: "", # class: 'mo'
73
74 String: "#7F8C8D", # class: 's'
75 String.Backtick: "", # class: 'sb'
76 String.Char: "", # class: 'sc'
77 String.Doc: "", # class: 'sd'
78 String.Double: "", # class: 's2'
79 String.Escape: "", # class: 'se'
80 String.Heredoc: "", # class: 'sh'
81 String.Interpol: "", # class: 'si'
82 String.Other: "", # class: 'sx'
83 String.Regex: "", # class: 'sr'
84 String.Single: "", # class: 's1'
85 String.Symbol: "", # class: 'ss'
86
87 Generic: "", # class: 'g'
88 Generic.Deleted: "", # class: 'gd',
89 Generic.Emph: "", # class: 'ge'
90 Generic.Error: "", # class: 'gr'
91 Generic.Heading: "", # class: 'gh'
92 Generic.Inserted: "", # class: 'gi'
93 Generic.Output: "", # class: 'go'
94 Generic.Prompt: "", # class: 'gp'
95 Generic.Strong: "", # class: 'gs'
96 Generic.Subheading: "", # class: 'gu'
97 Generic.Traceback: "", # class: 'gt'
98 }

eric ide

mercurial