You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Briefly: the token right before the comma is highlighted incorrectly in ternary operators (see image below) and range-based for loops. Right now the lexer is not aware of any other usage of : except indicating a label.
I have created a pull-request 3 years ago, but it has not been merged. All its details are lost, but as far as I remember, I have added a rule or two before or after this line:
This is a copy of some old issue: gpoore/minted#195
Briefly: the token right before the comma is highlighted incorrectly in ternary operators (see image below) and range-based for loops. Right now the lexer is not aware of any other usage of
:
except indicating a label.I have created a pull-request 3 years ago, but it has not been merged. All its details are lost, but as far as I remember, I have added a rule or two before or after this line:
pygments/pygments/lexers/c_cpp.py
Line 85 in 8630e03
It was probably not the best solution and just a workaround, but I didn't feel like digging in.
The text was updated successfully, but these errors were encountered: