Closed anntzer closed 5 years ago
I think just
diff --git a/syntax/python.vim b/syntax/python.vim
index 913da9d..72d13c4 100644
--- a/syntax/python.vim
+++ b/syntax/python.vim
@@ -326,7 +326,7 @@ else
syn match pythonFloat '\.\d\%([_0-9]*\d\)\=\%([eE][+-]\=\d\%([_0-9]*\d\)\=\)\=[jJ]\=\>' display
syn match pythonFloat '\<\d\%([_0-9]*\d\)\=[eE][+-]\=\d\%([_0-9]*\d\)\=[jJ]\=\>' display
- syn match pythonFloat '\<\d\%([_0-9]*\d\)\=\.\d\%([_0-9]*\d\)\=\%([eE][+-]\=\d\%([_0-9]*\d\)\=\)\=[jJ]\=' display
+ syn match pythonFloat '\<\d\%([_0-9]*\d\)\=\.\d\=\%([_0-9]*\d\)\=\%([eE][+-]\=\d\%([_0-9]*\d\)\=\)\=[jJ]\=' display
endif
"
(i.e. adding a \= after the \d after the decimal dot) fixes the issue.
Open a PR and I'll merge it.
Please apply the patch above.
Thanks!
... because they are floats, not ints.