Fixed hex error display

This commit is contained in:
Dmitry Vasiliev
2008-09-21 20:49:52 +04:00
parent b6d761f8cd
commit 5cfa952032
2 changed files with 3 additions and 2 deletions

View File

@@ -209,6 +209,8 @@ if exists("python_highlight_doctests") && python_highlight_doctests != 0
endif
" Numbers (ints, longs, floats, complex)
syn match pythonHexError "\<0[xX]\x*[g-zG-Z]\x*[lL]\=\>" display
syn match pythonHexNumber "\<0[xX]\x\+[lL]\=\>" display
syn match pythonOctNumber "\<0[oO]\o\+[lL]\=\>" display
syn match pythonBinNumber "\<0[bB][01]\+[lL]\=\>" display
@@ -220,7 +222,6 @@ syn match pythonFloat "\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display
syn match pythonFloat "\<\d\+\.\d*\([eE][+-]\=\d\+\)\=[jJ]\=" display
syn match pythonOctError "\<0[oO]\=\o*[8-9]\d*[lL]\=\>" display
syn match pythonHexError "\<0[xX]\x*[g-zG-Z]\x*[lL]\=\>" display
syn match pythonBinError "\<0[bB][01]*[2-9]\d*[lL]\=\>" display
if exists("python_highlight_builtins") && python_highlight_builtins != 0

View File

@@ -48,7 +48,7 @@ RuntimeWarning FutureWarning OverflowWarning ImportWarning UnicodeWarning
# Numbers
0 0x1f 077 .3 12.34 100L 0j 0j 34.2E-3 0b10 0o77
0 0x1f 077 .3 12.34 100L 0j 0j 34.2E-3 0b10 0o77 0xfffffffL
# Erroneous numbers