Skip to content

Commit

Permalink
modify number matching regex to fix issue zah#26
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingorman committed Jan 2, 2015
1 parent 05fdf7e commit 14a9a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/nim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 14a9a9d

Please sign in to comment.