Re: pygment regex question,Re: pygment regex question

2022-11-26 Thread Jean Abou Samra
Le 26/11/2022 à 16:16, Werner LEMBERG a écrit : OK, but where exactly is this documented? Is this missing, or am I blind? I think it's not written anywhere. If it is missing, could a Scheme expert please write some lines that I could incorporate into an MR? Nothing complicated: If a num

Re: pygment regex question,Re: pygment regex question

2022-11-26 Thread Werner LEMBERG
>>> Are there still cases where `#` is mandatory for numbers? >>> Otherwise the documentation could be updated to remove all `#`. >> >> Yes, there are: In markup, for example. >> >> \markup \fontsize 3 Hi >> >> is still illegal. OK, but where exactly is this documented? Is this missing, or am I

Re: pygment regex question,Re: pygment regex question

2022-11-25 Thread Werner LEMBERG
>> Why not. If you want to be even more precise on what you want to >> match: >> >> -\d+|((\d+|\\breve|\\longa)\.*) > > if someone really wants to touch that, please note that \maxima too > is a duration. Indeed, this is missing. I will add this to my work that will eventually result in a PR f

Re: pygment regex question,Re: pygment regex question

2022-11-25 Thread Benkő Pál
Jean Abou Samra ezt írta (időpont: 2022. nov. 25., P, 18:05): > > Le 25 nov. 2022 à 17:54, Werner LEMBERG a écrit : > > OK, but shouldn't this be rather > > (-?\d+|\\longa|\\breve)\.* > > then? > > Why not. If you want to be even more precise on what you want to match: > > -\d+|((\d+|\\breve|\\lo

Re: pygment regex question,Re: pygment regex question

2022-11-25 Thread Jean Abou Samra
> Le 25 nov. 2022 à 17:54, Werner LEMBERG a écrit : > >  >> >>> Note that at the time this regex is active, numbers are taken care >>> of. >> >> Floats are, integers not. > > OK, but shouldn't this be rather > > ``` > (-?\d+|\\longa|\\breve)\.* > ``` > > then? Why not. If you want to

Re: pygment regex question,Re: pygment regex question

2022-11-25 Thread Luca Fascione
I agree this would be a better regex, yes. (You still have that double re: thing in the subject going on, Werner) L On Fri, 25 Nov 2022, 17:55 Werner LEMBERG, wrote: > >> Note that at the time this regex is active, numbers are taken care > >> of. > > > > Floats are, integers not. > > OK, but sh

Re: pygment regex question,Re: pygment regex question

2022-11-25 Thread Werner LEMBERG
>> Note that at the time this regex is active, numbers are taken care >> of. > > Floats are, integers not. OK, but shouldn't this be rather ``` (-?\d+|\\longa|\\breve)\.* ``` then? Werner