Browse Source

Removed trailing 'L' support for numbers

Dmitry Vasiliev 15 years ago
parent
commit
f7f1409e29
3 changed files with 10 additions and 9 deletions
  1. 1
    0
      CHANGES.txt
  2. 2
    2
      TODO.txt
  3. 7
    7
      python.vim

+ 1
- 0
CHANGES.txt View File

1
 Revision 3.0.0 (2008-09-?):
1
 Revision 3.0.0 (2008-09-?):
2
 
2
 
3
+    - Removed trailing 'L' support for all numbers;
3
     - Updated support for str.format;
4
     - Updated support for str.format;
4
     - Added new builtins introduced in Python 2.6: "ascii", "exec",
5
     - Added new builtins introduced in Python 2.6: "ascii", "exec",
5
       "memoryview", "print";
6
       "memoryview", "print";

+ 2
- 2
TODO.txt View File

1
 Now
1
 Now
2
 ===
2
 ===
3
 
3
 
4
-- (Python 3.0) support for b"..." syntax and remove u"..." syntax;
4
+- (Python 3.0) non-ASCII identifiers;
5
 
5
 
6
-- (Python 3.0) add new bultins and exceptions;
6
+- (Python 3.0) support for b"..." syntax and remove u"..." syntax;
7
 
7
 
8
 Later
8
 Later
9
 =====
9
 =====

+ 7
- 7
python.vim View File

211
 endif
211
 endif
212
 
212
 
213
 " Numbers (ints, longs, floats, complex)
213
 " 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
215
 
215
 
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
219
 
219
 
220
-syn match   pythonNumber	"\<\d\+[lLjJ]\=\>" display
220
+syn match   pythonNumber	"\<\d\+[jJ]\=\>" display
221
 
221
 
222
 syn match   pythonFloat		"\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>" display
222
 syn match   pythonFloat		"\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>" display
223
 syn match   pythonFloat		"\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display
223
 syn match   pythonFloat		"\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display
224
 syn match   pythonFloat		"\<\d\+\.\d*\([eE][+-]\=\d\+\)\=[jJ]\=" display
224
 syn match   pythonFloat		"\<\d\+\.\d*\([eE][+-]\=\d\+\)\=[jJ]\=" display
225
 
225
 
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
228
 
228
 
229
 if exists("python_highlight_builtins") && python_highlight_builtins != 0
229
 if exists("python_highlight_builtins") && python_highlight_builtins != 0
230
   " Builtin functions, types and objects
230
   " Builtin functions, types and objects