diff --git a/python3.0.vim b/python3.0.vim index ed60d06..75d23f4 100644 --- a/python3.0.vim +++ b/python3.0.vim @@ -211,7 +211,7 @@ syn match pythonHexNumber "\<0[xX]\x\+\>" display syn match pythonOctNumber "\<0[oO]\o\+\>" display syn match pythonBinNumber "\<0[bB][01]\+\>" display -syn match pythonNumber "\<0\>" display +syn match pythonNumber "\<\d\>" display syn match pythonNumber "\<[1-9]\d\+\>" display syn match pythonNumber "\<\d\+[jJ]\>" display syn match pythonNumberError "\<0\d\+\>" display diff --git a/test.py b/test.py index d63a553..4a92f01 100644 --- a/test.py +++ b/test.py @@ -50,7 +50,7 @@ RuntimeWarning FutureWarning OverflowWarning ImportWarning UnicodeWarning # Numbers -0 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77 +0 1 2 9 10 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77 # Erroneous numbers