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

+ 2
- 2
TODO.txt View File

@@ -1,9 +1,9 @@
1 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 8
 Later
9 9
 =====

+ 7
- 7
python.vim View File

@@ -211,20 +211,20 @@ if exists("python_highlight_doctests") && python_highlight_doctests != 0
211 211
 endif
212 212
 
213 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 222
 syn match   pythonFloat		"\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>" display
223 223
 syn match   pythonFloat		"\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display
224 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 229
 if exists("python_highlight_builtins") && python_highlight_builtins != 0
230 230
   " Builtin functions, types and objects