diff options
| author | Mauricio Caceres Bravo <mauricio.caceres.bravo@gmail.com> | 2018-12-18 13:31:32 -0500 |
|---|---|---|
| committer | Mauricio Caceres Bravo <mauricio.caceres.bravo@gmail.com> | 2018-12-18 13:31:32 -0500 |
| commit | 7233edc4645a4aa2d416cf0077794fce164f3cc1 (patch) | |
| tree | b1dcb2c5a598aa6f90a372a458e3a33d40d94866 /pygments/styles/stata.py | |
| parent | 81760e00d719d50306cfd62ba68f9fd5ef21d3c4 (diff) | |
| download | pygments-git-7233edc4645a4aa2d416cf0077794fce164f3cc1.tar.gz | |
Stata lexer and styles improvements and bug fixes
- Nested comments correctly highlighted.
- Globals and locals correctly nested inside each other and strings.
- Extended locals and stored results correctly highlighted.
- Keywords and operators correctly highlighted.
- Parentheses and functions correctly highlighted.
Diffstat (limited to 'pygments/styles/stata.py')
| -rw-r--r-- | pygments/styles/stata.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/pygments/styles/stata.py b/pygments/styles/stata.py deleted file mode 100644 index 2d8abb7e..00000000 --- a/pygments/styles/stata.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -""" - pygments.styles.stata - ~~~~~~~~~~~~~~~~~~~~~ - - Style inspired by Stata's do-file editor. Note this is not meant - to be a complete style. It's merely meant to mimic Stata's do file - editor syntax highlighting. -""" - -from pygments.style import Style -from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Whitespace - - -class StataStyle(Style): - """ - Style inspired by Stata's do-file editor. Note this is not meant - to be a complete style. It's merely meant to mimic Stata's do file - editor syntax highlighting. - """ - - default_style = '' - - styles = { - Whitespace: '#bbbbbb', - Comment: 'italic #008800', - String: '#7a2424', - Number: '#2c2cff', - Operator: '', - Keyword: 'bold #353580', - Keyword.Constant: '', - Name.Function: '#2c2cff', - Name.Variable: 'bold #35baba', - Name.Variable.Global: 'bold #b5565e', - Error: 'bg:#e3d2d2 #a61717' - } |
