Skip to content

Commit

Permalink
reduced possible exponential prefixes to just 'e'
Browse files Browse the repository at this point in the history
Coffeescript exponential numbers can only be prefixed with a lower-case `e`; upper case `E` does not work:

> [stdin]:8:67: error: exponential notation in '9E50' must be indicated with a lowercase 'e'
  • Loading branch information
Qix- committed Apr 7, 2015
1 parent 827e4a3 commit 2f2addb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/coffee.vim
Expand Up @@ -92,7 +92,7 @@ syn region coffeeString start=/'/ skip=/\\\\\|\\'/ end=/'/
hi def link coffeeString String

" A integer, including a leading plus or minus
syn match coffeeNumber /\%(\i\|\$\)\@<![-+]\?\d\+\%([eE][+-]\?\d\+\)\?/ display
syn match coffeeNumber /\%(\i\|\$\)\@<![-+]\?\d\+\%(e[+-]\?\d\+\)\?/ display
" A hex, binary, or octal number
syn match coffeeNumber /\<0[xX]\x\+\>/ display
syn match coffeeNumber /\<0[bB][01]\+\>/ display
Expand Down

0 comments on commit 2f2addb

Please sign in to comment.