Skip to content

Commit

Permalink
Fix bug in lexer's reserved word error message
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Nov 25, 2011
1 parent 24836cc commit 26d5c99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffee-script/lexer.js

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

2 changes: 1 addition & 1 deletion src/lexer.coffee
Expand Up @@ -112,7 +112,7 @@ exports.Lexer = class Lexer
id = new String id
id.reserved = yes
else if id in RESERVED
@error "reserved word \"#{word}\""
@error "reserved word \"#{id}\""

unless forcedIdentifier
id = COFFEE_ALIAS_MAP[id] if id in COFFEE_ALIASES
Expand Down

0 comments on commit 26d5c99

Please sign in to comment.