Skip to content

Commit 1838753

Browse files
committed
Fixed number display
1 parent 75cbf6b commit 1838753

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python3.0.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ syn match pythonHexNumber "\<0[xX]\x\+\>" display
211211
syn match pythonOctNumber "\<0[oO]\o\+\>" display
212212
syn match pythonBinNumber "\<0[bB][01]\+\>" display
213213

214-
syn match pythonNumber "\<0\>" display
214+
syn match pythonNumber "\<\d\>" display
215215
syn match pythonNumber "\<[1-9]\d\+\>" display
216216
syn match pythonNumber "\<\d\+[jJ]\>" display
217217
syn match pythonNumberError "\<0\d\+\>" display

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Класс
5050

5151
# Numbers
5252

53-
0 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77
53+
0 1 2 9 10 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77
5454

5555
# Erroneous numbers
5656

0 commit comments

Comments
 (0)