Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewcode fails parsing Python 3.5 matrix multiplication operator '@' #2479

Closed
nbedou opened this issue Apr 21, 2016 · 5 comments
Closed

Viewcode fails parsing Python 3.5 matrix multiplication operator '@' #2479

nbedou opened this issue Apr 21, 2016 · 5 comments

Comments

@nbedou
Copy link

nbedou commented Apr 21, 2016

Using:

  • latest Sphinx dev version
  • latest pygments dev version
  • Python 3.5

I obtained the following error when parsing a Python 3 module using the multiplication operator '@':

File "/home/nicolas/anaconda3/envs/bugviewcode/lib/python3.5/site-packages/pygments/filters/__init__.py", line 196, in filter
raise self.exception(value)
 pygments.filters.ErrorToken: @

Remark: pygments used with command-line tool pygmentize can parse the file.

More details on the following test repo: https://github.com/nbedou/bugviewcode

@Rutzmoser
Copy link

I have the same issue. It does not show up with Sphinx 1.3.1 but all subsequent releases.

@twmacro
Copy link

twmacro commented May 15, 2016

I get this too. I rolled sphinx back to 1.3.1 ... but is there a work-around for later versions?

@neuralyzer
Copy link

I had the same issue. I could resolve it by adding the line

highlight_language = "python3"

to the conf.py file.

@twmacro
Copy link

twmacro commented Jun 23, 2016

That didn't work for me.

@tk0miya
Copy link
Member

tk0miya commented Jun 24, 2016

Sorry for inconvenience. I fixed this at 04723c1.
Thank you for reporting.

@tk0miya tk0miya closed this as completed Jun 24, 2016
@tk0miya tk0miya added this to the 1.4.5 milestone Jun 24, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants