Skip to content

Commit f7f1409

Browse files
committed
Removed trailing 'L' support for numbers
1 parent a220899 commit f7f1409

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Revision 3.0.0 (2008-09-?):
22

3+
- Removed trailing 'L' support for all numbers;
34
- Updated support for str.format;
45
- Added new builtins introduced in Python 2.6: "ascii", "exec",
56
"memoryview", "print";

TODO.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Now
22
===
33

4-
- (Python 3.0) support for b"..." syntax and remove u"..." syntax;
4+
- (Python 3.0) non-ASCII identifiers;
55

6-
- (Python 3.0) add new bultins and exceptions;
6+
- (Python 3.0) support for b"..." syntax and remove u"..." syntax;
77

88
Later
99
=====

python.vim

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,20 @@ if exists("python_highlight_doctests") && python_highlight_doctests != 0
211211
endif
212212

213213
" Numbers (ints, longs, floats, complex)
214-
syn match pythonHexError "\<0[xX]\x*[g-zG-Z]\x*[lL]\=\>" display
214+
syn match pythonHexError "\<0[xX]\x*[g-zG-Z]\x*\>" display
215215

216-
syn match pythonHexNumber "\<0[xX]\x\+[lL]\=\>" display
217-
syn match pythonOctNumber "\<0[oO]\o\+[lL]\=\>" display
218-
syn match pythonBinNumber "\<0[bB][01]\+[lL]\=\>" display
216+
syn match pythonHexNumber "\<0[xX]\x\+\>" display
217+
syn match pythonOctNumber "\<0[oO]\o\+\>" display
218+
syn match pythonBinNumber "\<0[bB][01]\+\>" display
219219

220-
syn match pythonNumber "\<\d\+[lLjJ]\=\>" display
220+
syn match pythonNumber "\<\d\+[jJ]\=\>" display
221221

222222
syn match pythonFloat "\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>" display
223223
syn match pythonFloat "\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display
224224
syn match pythonFloat "\<\d\+\.\d*\([eE][+-]\=\d\+\)\=[jJ]\=" display
225225

226-
syn match pythonOctError "\<0[oO]\=\o*[8-9]\d*[lL]\=\>" display
227-
syn match pythonBinError "\<0[bB][01]*[2-9]\d*[lL]\=\>" display
226+
syn match pythonOctError "\<0[oO]\=\o*[8-9]\d*\>" display
227+
syn match pythonBinError "\<0[bB][01]*[2-9]\d*\>" display
228228

229229
if exists("python_highlight_builtins") && python_highlight_builtins != 0
230230
" Builtin functions, types and objects

0 commit comments

Comments
 (0)