Skip to content

Commit

Permalink
Issue jashkenas#2060 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldalewis committed Jan 21, 2012
1 parent 34e517d commit a080bd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/coffee-script/lexer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/lexer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ exports.Lexer = class Lexer
numberToken: ->
return 0 unless match = NUMBER.exec @chunk
number = match[0]
if /[E]/.test number
@error "exponential notation must be indicated with a lowercase 'e'"
if /E/.test number
@error "exponential notation '#{number}' must be indicated with a lowercase 'e'"
else if /[BOX]/.test number
@error "radix prefixes must be lowercase '#{number}'"
else if /^0[89]/.test number
Expand Down

0 comments on commit a080bd4

Please sign in to comment.