diff options
author | Jean Abou-Samra <jean@abou-samra.fr> | 2023-04-11 16:22:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 16:22:28 +0200 |
commit | 569eea6ee85ec4d679bb38a890c167b58ee727dd (patch) | |
tree | 4de08c19545687e756d21d4ac01c46272d7601cd /pygments | |
parent | b018a65cb6ef51596c2cb8d6c97f0d79d9fa2ae7 (diff) | |
download | pygments-git-569eea6ee85ec4d679bb38a890c167b58ee727dd.tar.gz |
Enable Sphinx nitpicky mode and fix warnings (#2403)
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/formatter.py | 5 | ||||
-rw-r--r-- | pygments/lexer.py | 2 | ||||
-rw-r--r-- | pygments/styles/__init__.py | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/pygments/formatter.py b/pygments/formatter.py index 2f991c76..87183abb 100644 --- a/pygments/formatter.py +++ b/pygments/formatter.py @@ -27,7 +27,8 @@ class Formatter: Converts a token stream to text. Formatters should have attributes to help selecting them. These - are similar to the corresponding :class:`lexer.Lexer` attributes. + are similar to the corresponding :class:`~pygments.lexer.Lexer` + attributes. .. autoattribute:: name :no-value: @@ -70,7 +71,7 @@ class Formatter: #: the formatter from a list, e.g. using :func:`.get_formatter_by_name()`. aliases = [] - #: A list of :mod:`fnmatch` patterns that match filenames for which this + #: A list of fnmatch patterns that match filenames for which this #: formatter can produce output. The patterns in this list should be unique #: among all formatters. filenames = [] diff --git a/pygments/lexer.py b/pygments/lexer.py index 7c596719..6f4918c9 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -145,7 +145,7 @@ class Lexer(metaclass=LexerMeta): As these options must all be specifiable as strings (due to the command line usage), there are various utility functions - available to help with that, see `Option processing`_. + available to help with that, see `Utilities`_. """ self.options = options self.stripnl = get_bool_opt(options, 'stripnl', True) diff --git a/pygments/styles/__init__.py b/pygments/styles/__init__.py index 34744c6a..d563baa4 100644 --- a/pygments/styles/__init__.py +++ b/pygments/styles/__init__.py @@ -11,8 +11,8 @@ from pygments.plugin import find_plugin_styles from pygments.util import ClassNotFound - -#: Maps style names to 'submodule::classname'. +#: A dictionary of built-in styles, mapping style names to +#: ``'submodule::classname'`` strings. STYLE_MAP = { 'default': 'default::DefaultStyle', 'emacs': 'emacs::EmacsStyle', |