View Issue Details

IDProjectCategoryView StatusLast Update
0003778PluginsColorerpublic2020-02-27 09:50
Reporterstrump Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx64OSWindows 
Product Version3.0 
Summary0003778: Python syntax highligher doesn't suppoer underscores in numeric literals
DescriptionStarting from Python 3.6 numbers could have '_' in it. See specification: https://www.python.org/dev/peps/pep-0515/

For example:

decimal = 10_000
float_number = 3.14_15_92
hex_number = 0xCAFE_BABE
hex_number = 0x_CAFE
oct_number = 0o_755
bin_number = 0b111_000_111

But current python.hrc schema doesn't support this syntax and marks it with red.
Steps To Reproduce1. Create file "test.py"
2. Put content
decimal = 10_000
float_number = 3.14_15_92
hex_number = 0xCAFE_BABE
hex_number = 0x_CAFE
oct_number = 0o_755
bin_number = 0b111_000_111

Expected result: file content in editor is highlighted without syntax errors
Actual result: Underscore symbols are marked as syntax error.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-02-27 09:50 strump New Issue