Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4c426b9

Browse files
authored
Merge pull requestpython-mode#725 from MarSoft/py36_numbers
Do support underscore in numbers, pep515 (py3.6)
2 parentsd1858b7 +9bd0e40 commit4c426b9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎syntax/python.vim

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -250,16 +250,16 @@ endif
250250
" Numbers {{{
251251
" ===========
252252

253-
synmatchpythonHexError"\<0[xX]\x*[g-zG-Z]\x*[lL]\=\>"display
254-
synmatchpythonHexNumber"\<0[xX]\x\+[lL]\=\>"display
255-
synmatchpythonOctNumber"\<0[oO]\o\+[lL]\=\>"display
256-
synmatchpythonBinNumber"\<0[bB][01]\+[lL]\=\>"display
257-
synmatchpythonNumber"\<\d\+[lLjJ]\=\>"display
258-
synmatchpythonFloat"\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>"display
259-
synmatchpythonFloat"\<\d\+[eE][+-]\=\d\+[jJ]\=\>"display
260-
synmatchpythonFloat"\<\d\+\.\d*\([eE][+-]\=\d\+\)\=[jJ]\="display
261-
synmatchpythonOctError"\<0[oO]\=\o*[8-9]\d*[lL]\=\>"display
262-
synmatchpythonBinError"\<0[bB][01]*[2-9]\d*[lL]\=\>"display
253+
synmatchpythonHexError"\<0[xX][0-9a-fA-F_]*[g-zG-Z][0-9a-fA-F_]*[lL]\=\>"display
254+
synmatchpythonHexNumber"\<0[xX][0-9a-fA-F_]*[0-9a-fA-F][0-9a-fA-F_]*[lL]\=\>"display
255+
synmatchpythonOctNumber"\<0[oO][0-7_]*[0-7][0-7_]*[lL]\=\>"display
256+
synmatchpythonBinNumber"\<0[bB][01_]*[01][01_]*[lL]\=\>"display
257+
synmatchpythonNumber"\<[0-9][0-9_]*[lLjJ]\=\>"display
258+
synmatchpythonFloat"\.[0-9_]*[0-9][0-9_]*\([eE][+-]\=[0-9_]*[0-9][0-9_]*\)\=[jJ]\=\>"display
259+
synmatchpythonFloat"\<[0-9][0-9_]*[eE][+-]\=[0-9_]\+[jJ]\=\>"display
260+
synmatchpythonFloat"\<[0-9][0-9_]*\.[0-9_]*\([eE][+-]\=[0-9_]*[0-9][0-9_]*\)\=[jJ]\="display
261+
synmatchpythonOctError"\<0[oO]\=[0-7_]*[8-9][0-9_]*[lL]\=\>"display
262+
synmatchpythonBinError"\<0[bB][01_]*[2-9][0-9_]*[lL]\=\>"display
263263

264264
" }}}
265265

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp