alternatives with voltanumber-list not working in lyrics

Hans Aikema via bug-lilypond <[email protected]> Sat, 22 Mar 2025 12:26:24 +0100
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
In music the following works fine

\repeat volta 3 {
...
  \alternative {
    \volta 1 { …}
    \volta 2,3 { …}
  }
…
}

However when using the same construct in the lyrics it breaks:

Parsing...
/Users/aikebah/Projects/gitlab-aikebah/el-shaddai-music/src/music/ZZMWE/ZZMWE.ly:36:22: error: not a duration
            \volta 2,
                     3 {
Interpreting music...
/Users/aikebah/Projects/gitlab-aikebah/el-shaddai-music/src/music/ZZMWE/ZZMWE.ly:36:24: warning: missing volta specification on alternative element
            \volta 2,3 
                       {


The \alternative \volta is documented to take the list of volta numbers for which the alternative applies as an argument and the repeats of this type in the documentation always use comma-separated syntax I consider that syntax breaking for lyrics a bug given that there is no mention of this on the lyrics and repeats section (that does contain information on problems due to limited support for repeats within lyrics)

kind regards,
Hans Aikema
ZZMWE.ly (application/octet-stream, 823 B) - not displayed
PastedGraphic-2.png (image/png, 26.3 KB) - not displayed