diff docs/details-algpseudocode.rst @ 160:b4028838e0c8

Implement lexer option "prohibit_raiseonerror_filter". Sphinx raises by default when an Error token is seen (by means of the "raiseonerror" filter that is applied by default to lexers in Sphinx). This option skips this and allows error locations to be seen and highlighted properly. While there convert most Generic.Error tokens to Error tokens because now they can be handled by a lexer with "prohibit_raiseonerror_filter=True".
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 08 May 2026 17:46:28 +0200
parents 4ee0b1536ea6
children 11ce0903ff8b
line wrap: on
line diff
--- a/docs/details-algpseudocode.rst	Fri May 08 17:13:26 2026 +0200
+++ b/docs/details-algpseudocode.rst	Fri May 08 17:46:28 2026 +0200
@@ -10,6 +10,18 @@
 Lexer Options
 =============
 
+  .. describe:: prohibit_raiseonerror_filter
+
+     **Type:** `bool`
+
+     **Default:** `False`
+
+     If ``True`` the `raiseonerror` filter is not allowed to be applied by
+     `Sphinx`_ when :py:meth:`Lexer.add_filter` is called.
+     
+     This setting does not apply to filters that are set by the standard
+     lexer option `filters`.
+
   .. describe:: no_end
 
      **Type:** `bool`