From f7f1409e291c5eaaf12d7b9cbaa7bbb7d5589ef6 Mon Sep 17 00:00:00 2001 From: Dmitry Vasiliev Date: Mon, 22 Sep 2008 13:11:05 +0400 Subject: [PATCH] Removed trailing 'L' support for numbers --- CHANGES.txt | 1 + TODO.txt | 4 ++-- python.vim | 14 +++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index e0fb489..440087f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,6 @@ Revision 3.0.0 (2008-09-?): + - Removed trailing 'L' support for all numbers; - Updated support for str.format; - Added new builtins introduced in Python 2.6: "ascii", "exec", "memoryview", "print"; diff --git a/TODO.txt b/TODO.txt index 487e4ef..f60181a 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,9 +1,9 @@ Now === -- (Python 3.0) support for b"..." syntax and remove u"..." syntax; +- (Python 3.0) non-ASCII identifiers; -- (Python 3.0) add new bultins and exceptions; +- (Python 3.0) support for b"..." syntax and remove u"..." syntax; Later ===== diff --git a/python.vim b/python.vim index 614e688..c0dfdfb 100644 --- a/python.vim +++ b/python.vim @@ -211,20 +211,20 @@ if exists("python_highlight_doctests") && python_highlight_doctests != 0 endif " Numbers (ints, longs, floats, complex) -syn match pythonHexError "\<0[xX]\x*[g-zG-Z]\x*[lL]\=\>" display +syn match pythonHexError "\<0[xX]\x*[g-zG-Z]\x*\>" display -syn match pythonHexNumber "\<0[xX]\x\+[lL]\=\>" display -syn match pythonOctNumber "\<0[oO]\o\+[lL]\=\>" display -syn match pythonBinNumber "\<0[bB][01]\+[lL]\=\>" display +syn match pythonHexNumber "\<0[xX]\x\+\>" display +syn match pythonOctNumber "\<0[oO]\o\+\>" display +syn match pythonBinNumber "\<0[bB][01]\+\>" display -syn match pythonNumber "\<\d\+[lLjJ]\=\>" display +syn match pythonNumber "\<\d\+[jJ]\=\>" display syn match pythonFloat "\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>" display syn match pythonFloat "\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display syn match pythonFloat "\<\d\+\.\d*\([eE][+-]\=\d\+\)\=[jJ]\=" display -syn match pythonOctError "\<0[oO]\=\o*[8-9]\d*[lL]\=\>" display -syn match pythonBinError "\<0[bB][01]*[2-9]\d*[lL]\=\>" display +syn match pythonOctError "\<0[oO]\=\o*[8-9]\d*\>" display +syn match pythonBinError "\<0[bB][01]*[2-9]\d*\>" display if exists("python_highlight_builtins") && python_highlight_builtins != 0 " Builtin functions, types and objects