diff options
author | ilezhankin <ilezhankin@yandex-team.ru> | 2022-02-10 16:45:56 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:56 +0300 |
commit | 62a805381e41500fbc7914c37c71ab040a098f4e (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/python/Pygments/py3/pygments/styles/algol_nu.py | |
parent | 1d125034f06575234f83f24f08677955133f140e (diff) | |
download | ydb-62a805381e41500fbc7914c37c71ab040a098f4e.tar.gz |
Restoring authorship annotation for <ilezhankin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/styles/algol_nu.py')
-rw-r--r-- | contrib/python/Pygments/py3/pygments/styles/algol_nu.py | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/contrib/python/Pygments/py3/pygments/styles/algol_nu.py b/contrib/python/Pygments/py3/pygments/styles/algol_nu.py index b8737b27b0..fe2846693b 100644 --- a/contrib/python/Pygments/py3/pygments/styles/algol_nu.py +++ b/contrib/python/Pygments/py3/pygments/styles/algol_nu.py @@ -1,62 +1,62 @@ -""" - pygments.styles.algol_nu - ~~~~~~~~~~~~~~~~~~~~~~~~ - - Algol publication style without underlining of keywords. - - This style renders source code for publication of algorithms in - scientific papers and academic texts, where its format is frequently used. - - It is based on the style of the revised Algol-60 language report[1]. - - o No colours, only black, white and shades of grey are used. - o Keywords are rendered in lowercase boldface. - o Builtins are rendered in lowercase boldface italic. - o Docstrings and pragmas are rendered in dark grey boldface. - o Library identifiers are rendered in dark grey boldface italic. - o Comments are rendered in grey italic. - - To render keywords with underlining, refer to the `Algol` style. - - For lowercase conversion of keywords and builtins in languages where - these are not or might not be lowercase, a supporting lexer is required. - The Algol and Modula-2 lexers automatically convert to lowercase whenever - this style is selected. - - [1] `Revised Report on the Algorithmic Language Algol-60 <http://www.masswerk.at/algol60/report.htm>` - +""" + pygments.styles.algol_nu + ~~~~~~~~~~~~~~~~~~~~~~~~ + + Algol publication style without underlining of keywords. + + This style renders source code for publication of algorithms in + scientific papers and academic texts, where its format is frequently used. + + It is based on the style of the revised Algol-60 language report[1]. + + o No colours, only black, white and shades of grey are used. + o Keywords are rendered in lowercase boldface. + o Builtins are rendered in lowercase boldface italic. + o Docstrings and pragmas are rendered in dark grey boldface. + o Library identifiers are rendered in dark grey boldface italic. + o Comments are rendered in grey italic. + + To render keywords with underlining, refer to the `Algol` style. + + For lowercase conversion of keywords and builtins in languages where + these are not or might not be lowercase, a supporting lexer is required. + The Algol and Modula-2 lexers automatically convert to lowercase whenever + this style is selected. + + [1] `Revised Report on the Algorithmic Language Algol-60 <http://www.masswerk.at/algol60/report.htm>` + :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.style import Style -from pygments.token import Keyword, Name, Comment, String, Error, Operator - - -class Algol_NuStyle(Style): - - background_color = "#ffffff" - default_style = "" - - styles = { - Comment: "italic #888", - Comment.Preproc: "bold noitalic #888", - Comment.Special: "bold noitalic #888", - - Keyword: "bold", - Keyword.Declaration: "italic", - - Name.Builtin: "bold italic", - Name.Builtin.Pseudo: "bold italic", - Name.Namespace: "bold italic #666", - Name.Class: "bold italic #666", - Name.Function: "bold italic #666", - Name.Variable: "bold italic #666", - Name.Constant: "bold italic #666", - - Operator.Word: "bold", - - String: "italic #666", - - Error: "border:#FF0000" - } + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style +from pygments.token import Keyword, Name, Comment, String, Error, Operator + + +class Algol_NuStyle(Style): + + background_color = "#ffffff" + default_style = "" + + styles = { + Comment: "italic #888", + Comment.Preproc: "bold noitalic #888", + Comment.Special: "bold noitalic #888", + + Keyword: "bold", + Keyword.Declaration: "italic", + + Name.Builtin: "bold italic", + Name.Builtin.Pseudo: "bold italic", + Name.Namespace: "bold italic #666", + Name.Class: "bold italic #666", + Name.Function: "bold italic #666", + Name.Variable: "bold italic #666", + Name.Constant: "bold italic #666", + + Operator.Word: "bold", + + String: "italic #666", + + Error: "border:#FF0000" + } |