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

Syntax highlighting for numeric literals containing underscores #7324

Closed
jondo opened this issue Jun 21, 2018 · 2 comments
Closed

Syntax highlighting for numeric literals containing underscores #7324

jondo opened this issue Jun 21, 2018 · 2 comments

Comments

@jondo
Copy link
Contributor

jondo commented Jun 21, 2018

Problem Description

I am using the numeric literals with underscores new in Python 3.6, because I need to deal with large integers. My Spyder version does not do syntax highlighting correctly with these numbers.

What steps will reproduce the problem?

Enter the integer x = 1_000_000 in the editor. The number does not get highlighted as literal like in x = 1000000.

Package Versions

  • Spyder version: 3.2.8
  • Python version: 3.6.5
  • Qt version: 5.9.3
  • PyQt5 version: 5.9.2
  • Operating system: Windows 7

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.22.0 (OK)
numpy >=1.7      :  1.13.3 (OK)
sphinx >=0.6.6   :  1.7.2 (OK)
rope >=0.9.4     :  0.10.5 (OK)
jedi >=0.9.0     :  0.11.1 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  0.28.1 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.2.1 (OK)
pylint >=0.25    :  1.8.3 (OK)
@ccordoba12
Copy link
Member

Thanks for reporting. We'll add this functionality in a future release.

@ccordoba12
Copy link
Member

@dalthviz, please work on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants