From: Tormod Volden Date: Sat, 17 Aug 2024 17:03:49 +0000 (+0200) Subject: doc: Use double backslash in regex X-Git-Tag: v1.2.14~11 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=ee2cf10dc237ed22cb6ee6b1cd0b9653038f8617;p=alsa-python.git doc: Use double backslash in regex Closes: https://github.com/alsa-project/alsa-python/pull/15 Signed-off-by: Tormod Volden Signed-off-by: Jaroslav Kysela --- diff --git a/doc/alsa-python-coverage.py b/doc/alsa-python-coverage.py index ed21da2..256eb3f 100755 --- a/doc/alsa-python-coverage.py +++ b/doc/alsa-python-coverage.py @@ -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 = \