We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e07541a commit eb44ea7Copy full SHA for eb44ea7
syntax/python.vim
@@ -393,7 +393,7 @@ else
393
394
syn match pythonNumberError "\<\d[_0-9]*\D\>" display
395
syn match pythonNumberError "\<0[_0-9]\+\>" display
396
- syn match pythonNumberError "\<\%(_[_0-9]\+\|[_0-9]\+_\)\>" display
+ syn match pythonNumberError "\<\d[_0-9]*_\>" display
397
syn match pythonNumber "\<\d\>" display
398
syn match pythonNumber "\<[1-9][_0-9]*\d\>" display
399
syn match pythonNumber "\<\d[jJ]\>" display
test.py
@@ -67,7 +67,7 @@ async def Test
67
# Erroneous numbers
68
69
077 100L 0xfffffffL 0L 08 0xk 0x 0b102 0o78 0o123LaB
70
-0_ 0_1 _0 0_x1f 0x1f_ 0_b77 0b77_ ._2 .2_ 1_j
+0_ 0_1 0_x1f 0x1f_ 0_b77 0b77_ .2_ 1_j
71
72
# Strings
73
0 commit comments