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

Commit12d0d60

Browse files
committed
Don't treat lone _ as a digit
1 parent1b30f1f commit12d0d60

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎syntax/python.vim

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ endif
251251
" ===========
252252

253253
synmatchpythonHexError"\<0[xX][0-9a-fA-F_]*[g-zG-Z][0-9a-fA-F_]*[lL]\=\>"display
254-
synmatchpythonHexNumber"\<0[xX][0-9a-fA-F_]\+[lL]\=\>"display
255-
synmatchpythonOctNumber"\<0[oO][0-7_]\+[lL]\=\>"display
256-
synmatchpythonBinNumber"\<0[bB][01_]\+[lL]\=\>"display
257-
synmatchpythonNumber"\<[0-9_]\+[lLjJ]\=\>"display
258-
synmatchpythonFloat"\.[0-9_]\+\([eE][+-]\=[0-9_]\+\)\=[jJ]\=\>"display
259-
synmatchpythonFloat"\<[0-9_]\+[eE][+-]\=[0-9_]\+[jJ]\=\>"display
260-
synmatchpythonFloat"\<[0-9_]\+\.[0-9_]*\([eE][+-]\=[0-9_]\+\)\=[jJ]\="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][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][0-9_]*[eE][+-]\=[0-9_]\+[jJ]\=\>"display
260+
synmatchpythonFloat"\<[0-9_]*[0-9][0-9_]*\.[0-9_]*\([eE][+-]\=[0-9_]*[0-9][0-9_]*\)\=[jJ]\="display
261261
synmatchpythonOctError"\<0[oO]\=[0-7_]*[8-9][0-9_]*[lL]\=\>"display
262262
synmatchpythonBinError"\<0[bB][01_]*[2-9][0-9_]*[lL]\=\>"display
263263

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp