Skip to content

Commit 6f75c9a

Browse files
committed
Fixed hex error display
1 parent 07c654e commit 6f75c9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ syn match pythonFloat "\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display
220220
syn match pythonFloat "\<\d\+\.\d*\([eE][+-]\=\d\+\)\=[jJ]\=" display
221221

222222
syn match pythonOctError "\<0[oO]\=\o*[8-9]\d*[lL]\=\>" display
223-
syn match pythonHexError "\<0[xX]\x*\X\x*[lL]\=\>" display
223+
syn match pythonHexError "\<0[xX]\x*[g-zG-Z]\x*[lL]\=\>" display
224224
syn match pythonBinError "\<0[bB][01]*[2-9]\d*[lL]\=\>" display
225225

226226
if exists("python_highlight_builtins") && python_highlight_builtins != 0

test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ class classname
4848

4949
# Numbers
5050

51-
0 0x 0x1f 077 .3 12.34 100L 0j 0j 34.2E-3
51+
0 0x1f 077 .3 12.34 100L 0j 0j 34.2E-3 0b10 0o77
5252

5353
# Erroneous numbers
5454

55-
08 0xk
55+
08 0xk 0x 0b102 0o78
5656

5757
# Strings
5858

0 commit comments

Comments
 (0)