I am currently in the process of moving parsing of durations and pitches into the lexer instead of the parser (because parser lookahead causes tricky problems, and things like c'''' and c4.... can't be parsed without lookahead: any number of ' and/or . may still follow).
One really ugly problem is interpreting things like "4.". Looks like a duration, but then we have input/regression/dynamics-broken-hairpin.ly: line-width = 4.\cm I propose that a decimal dot has to be followed by at least one digit. Maybe also preceded by at least one digit (disallowing things like .5\cm) though this is less important syntactically. Affected will be at least the following code: Documentation/included/chord-names-jazz.ly: indent = 3.\cm input/regression/baerenreiter-sarabande.ly: indent = 7. \mm input/regression/dynamics-broken-hairpin.ly: line-width = 4.\cm input/regression/glissando.ly: line-width = 50.\mm input/regression/slur-nice.ly: line-width = 120.\mm input/regression/spacing-accidental-stretch.ly: line-width = 18.\cm So it is likely that user code will also be affected. I don't know what the idea with writing a decimal point in the above lines is supposed to be. One could equally well leave it off. -- David Kastrup _______________________________________________ lilypond-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-devel
