From ee2cf10dc237ed22cb6ee6b1cd0b9653038f8617 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sat, 17 Aug 2024 19:03:49 +0200 Subject: [PATCH] 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 --- doc/alsa-python-coverage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = \ -- 2.47.1