Skip to content

Commit 63c3ccf

Browse files
committed
Code golf
1 parent 5596dac commit 63c3ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lexer.coffee

+1-1
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)