@@ -319,35 +319,35 @@ if s:Python2Syntax()
319
319
syn match pythonOctError ' \< 0[oO]\=\o *[8-9]\d *[lL]\=\> ' display
320
320
syn match pythonBinError ' \< 0[bB][01]*[2-9]\d *[lL]\=\> ' display
321
321
322
- syn match pythonFloat ' \.\d\+\% ([eE][+-]\=\d\+\)\= [jJ]\=\> ' display
323
- syn match pythonFloat ' \<\d\+ [eE][+-]\=\d\+ [jJ]\=\> ' display
324
- syn match pythonFloat ' \<\d\+\.\d *\% ([eE][+-]\=\d\+\)\= [jJ]\= ' display
322
+ syn match pythonFloat ' \.\d\+\% ([eE][+-]\=\d\+\)\= [jJ]\=\> ' display
323
+ syn match pythonFloat ' \<\d\+ [eE][+-]\=\d\+ [jJ]\=\> ' display
324
+ syn match pythonFloat ' \<\d\+\.\d *\% ([eE][+-]\=\d\+\)\= [jJ]\= ' display
325
325
else
326
326
syn match pythonOctError ' \< 0[oO]\=\o *\D\+\d *\> ' display
327
327
" pythonHexError comes after pythonOctError so that 0xffffl is pythonHexError
328
328
syn match pythonHexError ' \< 0[xX]\x *[g-zG-Z]\x *\> ' display
329
329
syn match pythonBinError ' \< 0[bB][01]*\D\+\d *\> ' display
330
330
331
- syn match pythonHexNumber ' \< 0[xX][_0-9a-fA-F]*\x\> ' display
331
+ syn match pythonHexNumber ' \< 0[xX][_0-9a-fA-F]*\x\> ' display
332
332
syn match pythonOctNumber ' \< 0[oO][_0-7]*\o\> ' display
333
333
syn match pythonBinNumber ' \< 0[bB][_01]*[01]\> ' display
334
334
335
- syn match pythonNumberError ' \<\d [_0-9]*\D\> ' display
336
- syn match pythonNumberError ' \< 0[_0-9]\+\> ' display
337
- syn match pythonNumberError ' \< 0_x\S *\> ' display
338
- syn match pythonNumberError ' \< 0[bBxXoO][_0-9a-fA-F]*_\> ' display
339
- syn match pythonNumberError ' \<\d [_0-9]*_\> ' display
335
+ syn match pythonNumberError ' \<\d [_0-9]*\D\> ' display
336
+ syn match pythonNumberError ' \< 0[_0-9]\+\> ' display
337
+ syn match pythonNumberError ' \< 0_x\S *\> ' display
338
+ syn match pythonNumberError ' \< 0[bBxXoO][_0-9a-fA-F]*_\> ' display
339
+ syn match pythonNumberError ' \<\d [_0-9]*_\> ' display
340
340
syn match pythonNumber ' \<\d\> ' display
341
- syn match pythonNumber ' \< [1-9][_0-9]*\d\> ' display
342
- syn match pythonNumber ' \<\d [jJ]\> ' display
343
- syn match pythonNumber ' \< [1-9][_0-9]*\d [jJ]\> ' display
341
+ syn match pythonNumber ' \< [1-9][_0-9]*\d\> ' display
342
+ syn match pythonNumber ' \<\d [jJ]\> ' display
343
+ syn match pythonNumber ' \< [1-9][_0-9]*\d [jJ]\> ' display
344
344
345
345
syn match pythonOctError ' \< 0[oO]\=\o *[8-9]\d *\> ' display
346
346
syn match pythonBinError ' \< 0[bB][01]*[2-9]\d *\> ' display
347
347
348
- syn match pythonFloat ' \.\d\% ([_0-9]*\d\)\=\% ([eE][+-]\=\d\% ([_0-9]*\d\)\=\)\= [jJ]\=\> ' display
349
- syn match pythonFloat ' \<\d\% ([_0-9]*\d\)\= [eE][+-]\=\d\% ([_0-9]*\d\)\= [jJ]\=\> ' display
350
- syn match pythonFloat ' \<\d\% ([_0-9]*\d\)\=\.\d\% ([_0-9]*\d\)\=\% ([eE][+-]\=\d\% ([_0-9]*\d\)\=\)\= [jJ]\= ' display
348
+ syn match pythonFloat ' \.\d\% ([_0-9]*\d\)\=\% ([eE][+-]\=\d\% ([_0-9]*\d\)\=\)\= [jJ]\=\> ' display
349
+ syn match pythonFloat ' \<\d\% ([_0-9]*\d\)\= [eE][+-]\=\d\% ([_0-9]*\d\)\= [jJ]\=\> ' display
350
+ syn match pythonFloat ' \<\d\% ([_0-9]*\d\)\=\.\d\% ([_0-9]*\d\)\=\% ([eE][+-]\=\d\% ([_0-9]*\d\)\=\)\= [jJ]\= ' display
351
351
endif
352
352
353
353
"
0 commit comments