|
1 # -*- coding: utf-8 -*- |
|
2 """ |
|
3 pygments.styles.stata_light |
|
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
5 |
|
6 Light Style inspired by Stata's do-file editor. Note this is not |
|
7 meant to be a complete style, just for Stata's file formats. |
|
8 |
|
9 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. |
|
10 :license: BSD, see LICENSE for details. |
|
11 """ |
|
12 |
|
13 from pygments.style import Style |
|
14 from pygments.token import Keyword, Name, Comment, String, Error, \ |
|
15 Number, Operator, Whitespace, Text |
|
16 |
|
17 |
|
18 class StataLightStyle(Style): |
|
19 """ |
|
20 Light mode style inspired by Stata's do-file editor. This is not |
|
21 meant to be a complete style, just for use with Stata. |
|
22 """ |
|
23 |
|
24 default_style = '' |
|
25 styles = { |
|
26 Text: '#111111', |
|
27 Whitespace: '#bbbbbb', |
|
28 Error: 'bg:#e3d2d2 #a61717', |
|
29 String: '#7a2424', |
|
30 Number: '#2c2cff', |
|
31 Operator: '', |
|
32 Name.Function: '#2c2cff', |
|
33 Name.Other: '#be646c', |
|
34 Keyword: 'bold #353580', |
|
35 Keyword.Constant: '', |
|
36 Comment: 'italic #008800', |
|
37 Name.Variable: 'bold #35baba', |
|
38 Name.Variable.Global: 'bold #b5565e', |
|
39 } |