mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-08 13:44:48 +08:00
Fixed hex error display
This commit is contained in:
@@ -220,7 +220,7 @@ syn match pythonFloat "\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display
|
|||||||
syn match pythonFloat "\<\d\+\.\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 pythonOctError "\<0[oO]\=\o*[8-9]\d*[lL]\=\>" display
|
||||||
syn match pythonHexError "\<0[xX]\x*\X\x*[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
|
syn match pythonBinError "\<0[bB][01]*[2-9]\d*[lL]\=\>" display
|
||||||
|
|
||||||
if exists("python_highlight_builtins") && python_highlight_builtins != 0
|
if exists("python_highlight_builtins") && python_highlight_builtins != 0
|
||||||
|
|||||||
4
test.py
4
test.py
@@ -48,11 +48,11 @@ RuntimeWarning FutureWarning OverflowWarning ImportWarning UnicodeWarning
|
|||||||
|
|
||||||
# Numbers
|
# Numbers
|
||||||
|
|
||||||
0 0x 0x1f 077 .3 12.34 100L 0j 0j 34.2E-3
|
0 0x1f 077 .3 12.34 100L 0j 0j 34.2E-3 0b10 0o77
|
||||||
|
|
||||||
# Erroneous numbers
|
# Erroneous numbers
|
||||||
|
|
||||||
08 0xk
|
08 0xk 0x 0b102 0o78
|
||||||
|
|
||||||
# Strings
|
# Strings
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user