diff docs/filters.rst @ 270:cb66de44a7b9

Make the filter order more logical. Because the ErrorToGenericErrorTokenFilter is implemented as an application of the TokenReplaceFilter document the TokenReplaceFilter first.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 19 May 2026 22:59:59 +0200
parents 9790553d7225
children 315e94bac8a7
line wrap: on
line diff
--- a/docs/filters.rst	Tue May 19 21:54:10 2026 +0200
+++ b/docs/filters.rst	Tue May 19 22:59:59 2026 +0200
@@ -62,16 +62,6 @@
                filters=[ErrorToGenericErrorTokenFilter]))
 
 
-ErrorToGenericErrorTokenFilter
-==============================
-
-:Name: errortogenericerror
-:Filter Options: none
-
-Replace all :py:class:`pygments.token.Token.Error` tokens in a stream by
-:py:class:`pygments.token.Token.Generic.Error` tokens.
-
-
 TokenReplaceFilter
 ==================
 
@@ -103,3 +93,15 @@
 with the token types given in `replacements` values or in `token_to`.
 
 The values in the token stream are retained.
+
+
+ErrorToGenericErrorTokenFilter
+==============================
+
+:Name: errortogenericerror
+:Filter Options: none
+
+Replace all :py:class:`pygments.token.Token.Error` tokens in a stream by
+:py:class:`pygments.token.Token.Generic.Error` tokens.
+
+The filter is implemented as an application of the `TokenReplaceFilter`_.