Results 216 comments of Jean Abou Samra

I am concerned that "case x, ?:" might look like there can be one or two elements. (Ditto.)

Thanks. @gvanrossum I guess @SaschaSchlemmer meant that, in a future where guards would be allowed for subpatterns (for what could be called "guarded patterns"), we could have "PAT1, PAT2 if...

Oh! Indeed, now I understand why Guido was proposing to restrict the syntax. I'm sorry for having cluttered this issue with pointless text.

I am trying to tackle this issue as well as #1096 and #1380. Since it turns out to take a little work to tidy up the patch I am working...

I am not fully understanding what you want to achieve with this. Do you intend it to be part of the "material" style only? In that case, inverting the color...

> Indeed, when I generate the full output and open the RTF with Libreoffice, the bracket is black while the "for" is purple. Yes, same result for me.

> Is it possible to incorporate it as a builtin for pygments? Feel free to submit a PR :-) A possible alternative would be a filter that automatically adds tabs...

See https://pygments.org/docs/filterdevelopment/. Basically, you could write - a CSV lexer that just recognizes common value formats such as numbers, and produces tokens such as `Number`, `Text`, and `Punctuation`, the latter...

Agreed. Would you be willing to open a PR for that?