comparison docs/lexer-algpseudocode.rst @ 207:76053daf813e

Extend the note in "Customized Lexers in Sphinx" somewhat
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 13 May 2026 15:18:27 +0200
parents b6a959c31bed
children de7118d299e9
comparison
equal deleted inserted replaced
206:4e4c83a87387 207:76053daf813e
527 527
528 .. note:: Lexers in Sphinx are instantiated with the `raiseonerror` filter 528 .. note:: Lexers in Sphinx are instantiated with the `raiseonerror` filter
529 applied by default. 529 applied by default.
530 This is also true for custom lexers that are added by 530 This is also true for custom lexers that are added by
531 :py:meth:`Sphinx.add_lexer`. 531 :py:meth:`Sphinx.add_lexer`.
532 Using the `filters` option the user can associate custom filters
533 with a lexer.
534 These filters have precedence over the default `raiseonerror`
535 filter.
532 536
533 Lexer *instances* that are added to 537 Lexer *instances* that are added to
534 :py:data:`sphinx.highlighting.lexers` somehow are taken as is by 538 :py:data:`sphinx.highlighting.lexers` somehow are taken as is by
535 Sphinx and are not augmented with any default filters. 539 Sphinx and are not augmented with any default filters.
536 540