Skip to content

Commit 96f6941

Browse files
committed
gh-139721: Fix pdbcommand regex to support underscores
Fix pdbcmd_sig_re to include underscores for commands like ignore_module
1 parent ac97b3b commit 96f6941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tools/extensions/pyspecific.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def parse_opcode_signature(env, sig, signode):
7272

7373
# Support for documenting pdb commands
7474

75-
pdbcmd_sig_re = re.compile(r'([a-z()!]+)\s*(.*)')
75+
pdbcmd_sig_re = re.compile(r'([a-z()!_]+)\s*(.*)')
7676

7777
# later...
7878
# pdbargs_tokens_re = re.compile(r'''[a-zA-Z]+ | # identifiers

0 commit comments

Comments
 (0)