comparison 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
comparison
equal deleted inserted replaced
159:4ee0b1536ea6 160:b4028838e0c8
7 AlgPseudocode 7 AlgPseudocode
8 *************** 8 ***************
9 9
10 Lexer Options 10 Lexer Options
11 ============= 11 =============
12
13 .. describe:: prohibit_raiseonerror_filter
14
15 **Type:** `bool`
16
17 **Default:** `False`
18
19 If ``True`` the `raiseonerror` filter is not allowed to be applied by
20 `Sphinx`_ when :py:meth:`Lexer.add_filter` is called.
21
22 This setting does not apply to filters that are set by the standard
23 lexer option `filters`.
12 24
13 .. describe:: no_end 25 .. describe:: no_end
14 26
15 **Type:** `bool` 27 **Type:** `bool`
16 28