Skip to content

Commit

Permalink
fixed #1436
Browse files Browse the repository at this point in the history
  • Loading branch information
thejh authored and michaelficarra committed Jul 7, 2011
1 parent caa3d1a commit d32c060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/lexer.js

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

3 changes: 1 addition & 2 deletions src/lexer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ exports.Lexer = class Lexer
not prev.spaced and prev[0] is '@')
tag = 'IDENTIFIER'

if id in JS_KEYWORDS or
not forcedIdentifier and id in COFFEE_KEYWORDS
if not forcedIdentifier and (id in JS_KEYWORDS or id in COFFEE_KEYWORDS)
tag = id.toUpperCase()
if tag is 'WHEN' and @tag() in LINE_BREAK
tag = 'LEADING_WHEN'
Expand Down

0 comments on commit d32c060

Please sign in to comment.