Skip to content

Commit

Permalink
Merge pull request jashkenas#1892 from marijnh/master
Browse files Browse the repository at this point in the history
Two tiny fixes
  • Loading branch information
jashkenas committed Nov 25, 2011
2 parents 7d22a01 + 26d5c99 commit 6cb13f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 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.

6 changes: 2 additions & 4 deletions lib/coffee-script/nodes.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
4 changes: 2 additions & 2 deletions src/nodes.coffee
Expand Up @@ -309,8 +309,8 @@ exports.Literal = class Literal extends Base
name is @value

jumps: (o) ->
return no unless @isStatement()
if not (o and (o.loop or o.block and (@value isnt 'continue'))) then this else no
return this if @value is 'break' and not (o?.loop or o?.block)
return this if @value is 'continue' and not o?.loop

compileNode: (o) ->
code = if @isUndefined
Expand Down

0 comments on commit 6cb13f4

Please sign in to comment.