1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Fix bug in lexer's reserved word error message

This commit is contained in:
Marijn Haverbeke 2011-11-25 10:45:50 +01:00
parent 24836ccf6d
commit 26d5c99570
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@
id = new String(id);
id.reserved = true;
} else if (__indexOf.call(RESERVED, id) >= 0) {
this.error("reserved word \"" + word + "\"");
this.error("reserved word \"" + id + "\"");
}
}
if (!forcedIdentifier) {

View file

@ -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