Skip to content

Commit 47e958d

Browse files
committed
align strings, remove tabs
1 parent 06788bf commit 47e958d

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

syntax/python.vim

+15-15
Original file line numberDiff line numberDiff line change
@@ -319,35 +319,35 @@ if s:Python2Syntax()
319319
syn match pythonOctError '\<0[oO]\=\o*[8-9]\d*[lL]\=\>' display
320320
syn match pythonBinError '\<0[bB][01]*[2-9]\d*[lL]\=\>' display
321321

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
325325
else
326326
syn match pythonOctError '\<0[oO]\=\o*\D\+\d*\>' display
327327
" pythonHexError comes after pythonOctError so that 0xffffl is pythonHexError
328328
syn match pythonHexError '\<0[xX]\x*[g-zG-Z]\x*\>' display
329329
syn match pythonBinError '\<0[bB][01]*\D\+\d*\>' display
330330

331-
syn match pythonHexNumber '\<0[xX][_0-9a-fA-F]*\x\>' display
331+
syn match pythonHexNumber '\<0[xX][_0-9a-fA-F]*\x\>' display
332332
syn match pythonOctNumber '\<0[oO][_0-7]*\o\>' display
333333
syn match pythonBinNumber '\<0[bB][_01]*[01]\>' display
334334

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
340340
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
344344

345345
syn match pythonOctError '\<0[oO]\=\o*[8-9]\d*\>' display
346346
syn match pythonBinError '\<0[bB][01]*[2-9]\d*\>' display
347347

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
351351
endif
352352

353353
"

0 commit comments

Comments
 (0)