diff --git a/patacrep/content/__init__.py b/patacrep/content/__init__.py index f6e81454..31407113 100755 --- a/patacrep/content/__init__.py +++ b/patacrep/content/__init__.py @@ -174,7 +174,7 @@ def process_content(content, config=None): """ contentlist = [] plugins = config.get('_content_plugins', {}) - keyword_re = re.compile(r'^ *(?P\w*) *(\((?P.*)\))? *$') + keyword_re = re.compile(r'^ *(?P[\w\*]*) *(\((?P.*)\))? *$') if not content: content = [["song"]] for elem in content: diff --git a/test/test_content/sections_short.control b/test/test_content/sections_short.control index a0dd3600..706e86b8 100644 --- a/test/test_content/sections_short.control +++ b/test/test_content/sections_short.control @@ -1 +1 @@ -["section:(tradi)Traditional", "exsong.sg", "section:Example", "texsong.tsg", "chordpro.csg", "exsong.sg"] \ No newline at end of file +["section:(tradi)Traditional", "exsong.sg", "section*:Example", "texsong.tsg", "chordpro.csg", "exsong.sg"] \ No newline at end of file diff --git a/test/test_content/sections_short.source b/test/test_content/sections_short.source index 38693929..fe70d510 100644 --- a/test/test_content/sections_short.source +++ b/test/test_content/sections_short.source @@ -1,6 +1,6 @@ [["section", "Traditional", "tradi"], "exsong.sg", - ["section", "Example"], + ["section*", "Example"], "texsong.tsg", "chordpro.csg", "exsong.sg"] \ No newline at end of file