-
Notifications
You must be signed in to change notification settings - Fork 779
Closed
Milestone
Description
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
| (r'(' + _ident + r')(\s*)(:)(?!:)', bygroups(Name.Label, Whitespace, Punctuation)), |
It was probably not the best solution and just a workaround, but I didn't feel like digging in.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
