]> git.alsa-project.org Git - alsa-python.git/commitdiff
doc: Use double backslash in regex
authorTormod Volden <debian.tormod@gmail.com>
Sat, 17 Aug 2024 17:03:49 +0000 (19:03 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 14 Apr 2025 08:05:58 +0000 (10:05 +0200)
Closes: https://github.com/alsa-project/alsa-python/pull/15
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
doc/alsa-python-coverage.py

index ed21da24a0af5a16a763c2106b29dc5904683101..256eb3f67472974082cf4580090598a55c107cde 100755 (executable)
@@ -56,11 +56,11 @@ function_define_block = \
 #    + Group(("(" + args + Optional("...") + ")") | "{")
 
 # common asoundlib parser
-snd_ = Regex("snd_[\w_]+")
-SND_ = Regex("SND_[\w_]+")
+snd_ = Regex("snd_[\\w_]+")
+SND_ = Regex("SND_[\\w_]+")
 
 # pyalsa/alsaseq.c parser
-alsaseq_SEQ = Regex("SEQ_[\w_]+")
+alsaseq_SEQ = Regex('SEQ_[\\w_]+')
 alsaseq_Constant = \
     "TCONSTADD(module," + alsaseq_SEQ + "," + quotedString + "," + alsaseq_SEQ
 alsaseq_typedef = \