Skip to content

Commit 725fe8e

Browse files
committed
Code golf
1 parent 5596dac commit 725fe8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/coffeescript/lexer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lexer.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ exports.Lexer = class Lexer
170170
isForFrom(prev)
171171
tag = 'FORFROM'
172172
@seenFor = no
173-
else if tag is 'PROPERTY' and prev and prev.spaced and prev[0] in CALLABLE and /^[g|s]et$/.test(prev[1])
173+
else if tag is 'PROPERTY' and prev and prev.spaced and prev[0] in CALLABLE and /^[gs]et$/.test(prev[1])
174174
@error "'#{prev[1]}' cannot be used as a keyword, or as a function call without parentheses", prev[2]
175175

176176
if tag is 'IDENTIFIER' and id in RESERVED

0 commit comments

Comments
 (0)