[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please review Pygments lexer and style
From: |
David Kastrup |
Subject: |
Re: Please review Pygments lexer and style |
Date: |
Sun, 27 Jun 2021 16:06:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Benkő Pál <benko.pal@gmail.com> writes:
> Jean Abou Samra <jean@abou-samra.fr> ezt írta (időpont: 2021. jún.
> 24., Cs, 20:17):
>> I'll style \longa in bold too.
>
> \longa is a duration, like 2 in c2; on the other hand 3 in \repeat
> \unfold 3 or \time 3/4 is not a duration. now the 4 in \time 3/4 is
> arguably a duration, but...
No, it isn't. 3/4 is a fraction and passed as such into \time . A
duration cannot be something like 5 while \time 3/5 is accepted by the
parser (the time signature engraver will give you a warning because
that's not really something LilyPond can make a lot of sense of). If
you use 5 as a duration, it's the parser that already bombs out (though
admittedly the lexer will treat it like 4, but then the lexer does not
distinguish durations from integers in general).
--
David Kastrup
- Please review Pygments lexer and style, Jean Abou Samra, 2021/06/23
- Re: Please review Pygments lexer and style, Jean Abou Samra, 2021/06/23
- Re: Please review Pygments lexer and style, Dan Eble, 2021/06/23
- Re: Please review Pygments lexer and style, Jean Abou Samra, 2021/06/23
- Re: Please review Pygments lexer and style, Jean Abou Samra, 2021/06/24
- Re: Please review Pygments lexer and style, Jonas Hahnfeld, 2021/06/24
- Re: Please review Pygments lexer and style, Jean Abou Samra, 2021/06/24
- Re: Please review Pygments lexer and style, Dan Eble, 2021/06/24
- Re: Please review Pygments lexer and style, Benkő Pál, 2021/06/27
- Re: Please review Pygments lexer and style,
David Kastrup <=