Python lexer does not recognize the __matmul__ operator (@) introduced in Python 3.5

Issue #1362 new
Anonymous created an issue

Scanning a file using the matmul operator @ considers the token @ is Error. Simple fix seems to be to add @ to the list of Operators recognized in pygments/lexers/

tokens = { [...] (r'!=|==|<<|>>|[-~+/*%=<>&@^|.]', Operator), [...]

Comments (0)

  1. Log in to comment