Sha256: cd7885b8e3eaa46a3216190abf531f30eeb56b0f68b66a1deb9c1346c079d8d8

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

# -*- 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'
    }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pygments.rb-1.1.2 vendor/pygments-main/pygments/styles/stata.py
pygments.rb-1.1.1 vendor/pygments-main/pygments/styles/stata.py
pygments.rb-1.1.0 vendor/pygments-main/pygments/styles/stata.py
pygments.rb-1.0.0 vendor/pygments-main/pygments/styles/stata.py