chiark / gitweb /
documentation/doxygen: allow \xrefitem with numbers in the middle.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 2 Jan 2022 11:39:16 +0000 (12:39 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 2 Jan 2022 11:39:16 +0000 (12:39 +0100)
In Magnum I used to have \xrefitem aliases such as \requires_gles20 so
the current regex worked, but when adding \requires_gles20_only it
didn't work anymore. Such a stupid oversight, sorry to whoever else
tripped up on that as well.

Not updating any test case because regexes are write only anyway.

documentation/doxygen.py

index d8b2df2284e834abe67e432da5e4350bfa624aca..714326340e87245ce2c8eca97baeb50275dfdedc 100755 (executable)
@@ -145,7 +145,7 @@ copy a link to the result using <span class="m-label m-dim">⌘</span>
     'VERSION_LABELS': False
 }
 
-xref_id_rx = re.compile(r"""(.*)_1(_[a-z-]+[0-9]+|@)$""")
+xref_id_rx = re.compile(r"""(.*)_1(_[a-z-0-9]+|@)$""")
 slugify_nonalnum_rx = re.compile(r"""[^\w\s-]""")
 slugify_hyphens_rx = re.compile(r"""[-\s]+""")