Skip to content

Commit ee2cf10

Browse files
tormodvoldenperexg
authored andcommitted
doc: Use double backslash in regex
Closes: #15 Signed-off-by: Tormod Volden <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent 25dbbe7 commit ee2cf10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/alsa-python-coverage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656
# + Group(("(" + args + Optional("...") + ")") | "{")
5757

5858
# common asoundlib parser
59-
snd_ = Regex("snd_[\w_]+")
60-
SND_ = Regex("SND_[\w_]+")
59+
snd_ = Regex("snd_[\\w_]+")
60+
SND_ = Regex("SND_[\\w_]+")
6161

6262
# pyalsa/alsaseq.c parser
63-
alsaseq_SEQ = Regex("SEQ_[\w_]+")
63+
alsaseq_SEQ = Regex('SEQ_[\\w_]+')
6464
alsaseq_Constant = \
6565
"TCONSTADD(module," + alsaseq_SEQ + "," + quotedString + "," + alsaseq_SEQ
6666
alsaseq_typedef = \

0 commit comments

Comments
 (0)