Skip to content

Commit

Permalink
Code golf
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Apr 4, 2017
1 parent 5596dac commit 63c3ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lexer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ exports.Lexer = class Lexer
isForFrom(prev)
tag = 'FORFROM'
@seenFor = no
else if tag is 'PROPERTY' and prev and prev.spaced and prev[0] in CALLABLE and /^[g|s]et$/.test(prev[1])
else if tag is 'PROPERTY' and prev and prev.spaced and prev[0] in CALLABLE and /^[gs]et$/.test(prev[1])
@error "'#{prev[1]}' cannot be used as a keyword, or as a function call without parentheses", prev[2]

if tag is 'IDENTIFIER' and id in RESERVED
Expand Down

0 comments on commit 63c3ccf

Please sign in to comment.