Merge pull request #27 from Normangorman/range_highlighting_fix

modify number matching regex to fix #26
This commit is contained in:
zah 2015-01-03 14:40:57 +02:00
commit cb6d4e34eb

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