rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.32k stars 731 forks source link

Python: exclamation mark in f-string marked as error #1800

Closed bmesuere closed 2 years ago

bmesuere commented 2 years ago

Name of the lexer Python

Code sample

print(f'{owl!a}')

http://rouge.jneen.net/v3.28.0/python/cHJpbnQoZid7b3dsIWF9Jyk

Additional context The ! in the exclamation mark syntax in f-strings is marked as an error which shouldn't be the case.