modify number matching regex to fix issue #26

This commit is contained in:
Benjamin Gorman 2015-01-02 03:19:50 +00:00
commit 14a9a9d3d8

View file

@ -79,7 +79,7 @@ if nim_highlight_numbers == 1
" numbers (including longs and complex)
syn match nimNumber "\v<0x\x+(\'(i|I|f|F|u|U)(8|16|32|64))?>"
syn match nimNumber "\v<[0-9_]+(\'(i|I|f|F|u|U)(8|16|32|64))?>"
syn match nimNumber "\v\.[0-9_]+([eE][+-]=[0-9_]+)=>"
syn match nimNumber "\v[0-9]\.[0-9_]+([eE][+-]=[0-9_]+)=>"
syn match nimNumber "\v<[0-9_]+(\.[0-9_]+)?([eE][+-]?[0-9_]+)?(\'(f|F)(32|64))?>"
endif