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 | df656b31ecabd8a1b649f79de050854a2974e395 (patch) | |
tree | 3726a090e850d6e6ca398c8aa782e8bed097451e /pygments/styles/stata.py | |
parent | fd2b598cc8a5f3e7103b90393a3b188a927f4a6e (diff) | |
download | pygments-df656b31ecabd8a1b649f79de050854a2974e395.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' - } |