Added a rule to prevent invoking THIS.

This commit is contained in:
Tim Jones
2010-04-03 14:14:16 +13:00
parent a1975583a7
commit 8fc631269b
2 changed files with 2 additions and 2 deletions

View File

@@ -269,7 +269,7 @@ exports.Lexer: class Lexer
tag: 'SOAKED_INDEX_END'
@soaked_index: false
else if include(CALLABLE, @tag()) and not prev_spaced
tag: 'CALL_START' if value is '('
tag: 'CALL_START' if value is '(' and @tag() isnt 'THIS'
tag: 'INDEX_START' if value is '['
@i: + value.length
return @tag_half_assignment tag if space and prev_spaced and @prev()[0] is 'ASSIGN' and include HALF_ASSIGNMENTS, tag