浏览代码

Fixed number display

Dmitry Vasiliev 16 年前
父节点
当前提交
1838753d2c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      python3.0.vim
  2. 1
    1
      test.py

+ 1
- 1
python3.0.vim 查看文件

211
 syn match   pythonOctNumber "\<0[oO]\o\+\>" display
211
 syn match   pythonOctNumber "\<0[oO]\o\+\>" display
212
 syn match   pythonBinNumber "\<0[bB][01]\+\>" display
212
 syn match   pythonBinNumber "\<0[bB][01]\+\>" display
213
 
213
 
214
-syn match   pythonNumber	"\<0\>" display
214
+syn match   pythonNumber	"\<\d\>" display
215
 syn match   pythonNumber	"\<[1-9]\d\+\>" display
215
 syn match   pythonNumber	"\<[1-9]\d\+\>" display
216
 syn match   pythonNumber	"\<\d\+[jJ]\>" display
216
 syn match   pythonNumber	"\<\d\+[jJ]\>" display
217
 syn match   pythonNumberError	"\<0\d\+\>" display
217
 syn match   pythonNumberError	"\<0\d\+\>" display

+ 1
- 1
test.py 查看文件

50
 
50
 
51
 # Numbers
51
 # Numbers
52
 
52
 
53
-0 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77
53
+0 1 2 9 10 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77
54
 
54
 
55
 # Erroneous numbers
55
 # Erroneous numbers
56
 
56