Skip to content

Commit b521645

Browse files
committed
Trailing 'L' removal was in wrong file
1 parent 6e6cdff commit b521645

File tree

4 files changed

+20
-15
lines changed

4 files changed

+20
-15
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Revision 3.0.0 (2008-09-?):
88
"execfile", "file", "help", "intern", "long", "raw_input", "reduce",
99
"reload", "unichr", "unicode", "xrange";
1010

11+
Revision 2.6.3 (2008-09-29):
12+
13+
- Return back trailing 'L' support for numbers. Actually it was changed for
14+
future Python 3.0 syntax but in wrong file;
15+
1116
Revision 2.6.2 (2008-09-22):
1217

1318
- Added "VMSError" exception;

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*\>" display
214+
syn match pythonHexError "\<0[xX]\x*[g-zG-Z]\x*[lL]\=\>" display
215215

216-
syn match pythonHexNumber "\<0[xX]\x\+\>" display
217-
syn match pythonOctNumber "\<0[oO]\o\+\>" display
218-
syn match pythonBinNumber "\<0[bB][01]\+\>" display
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
219219

220-
syn match pythonNumber "\<\d\+[jJ]\=\>" display
220+
syn match pythonNumber "\<\d\+[lLjJ]\=\>" 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*\>" display
227-
syn match pythonBinError "\<0[bB][01]*[2-9]\d*\>" display
226+
syn match pythonOctError "\<0[oO]\=\o*[8-9]\d*[lL]\=\>" display
227+
syn match pythonBinError "\<0[bB][01]*[2-9]\d*[lL]\=\>" display
228228

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

python3.0.vim

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

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

209-
syn match pythonHexNumber "\<0[xX]\x\+[lL]\=\>" display
210-
syn match pythonOctNumber "\<0[oO]\o\+[lL]\=\>" display
211-
syn match pythonBinNumber "\<0[bB][01]\+[lL]\=\>" display
209+
syn match pythonHexNumber "\<0[xX]\x\+\>" display
210+
syn match pythonOctNumber "\<0[oO]\o\+\>" display
211+
syn match pythonBinNumber "\<0[bB][01]\+\>" display
212212

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

215215
syn match pythonFloat "\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>" display
216216
syn match pythonFloat "\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display
217217
syn match pythonFloat "\<\d\+\.\d*\([eE][+-]\=\d\+\)\=[jJ]\=" display
218218

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

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

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class classname
4848

4949
# Numbers
5050

51-
0 0x1f 077 .3 12.34 100L 0j 0j 34.2E-3 0b10 0o77 0xfffffffL
51+
0 0x1f 077 .3 12.34 100L 0j 0j 34.2E-3 0b10 0o77 0xfffffffL 0L
5252

5353
# Erroneous numbers
5454

0 commit comments

Comments
 (0)