eric6/ThirdParty/Pygments/pygments/styles/stata.py

branch
maintenance
changeset 7560
343db73c4842
parent 7507
a4eb1787ea41
parent 7559
b198b08914cc
child 7561
fb454da949c4
equal deleted inserted replaced
7507:a4eb1787ea41 7560:343db73c4842
1 # -*- coding: utf-8 -*-
2 """
3 pygments.styles.stata
4 ~~~~~~~~~~~~~~~~~~~~~
5
6 Style inspired by Stata's do-file editor. Note this is not meant
7 to be a complete style. It's merely meant to mimic Stata's do file
8 editor syntax highlighting.
9
10 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
11 :license: BSD, see LICENSE for details.
12 """
13
14 from pygments.style import Style
15 from pygments.token import Keyword, Name, Comment, String, Error, \
16 Number, Operator, Whitespace
17
18
19 class StataStyle(Style):
20 """
21 Style inspired by Stata's do-file editor. Note this is not meant
22 to be a complete style. It's merely meant to mimic Stata's do file
23 editor syntax highlighting.
24 """
25
26 default_style = ''
27
28 styles = {
29 Whitespace: '#bbbbbb',
30 Comment: 'italic #008800',
31 String: '#7a2424',
32 Number: '#2c2cff',
33 Operator: '',
34 Keyword: 'bold #353580',
35 Keyword.Constant: '',
36 Name.Function: '#2c2cff',
37 Name.Variable: 'bold #35baba',
38 Name.Variable.Global: 'bold #b5565e',
39 Error: 'bg:#e3d2d2 #a61717'
40 }

eric ide

mercurial