From a1975583a79091a850ccea2427751a0004c68918 Mon Sep 17 00:00:00 2001 From: Tim Jones Date: Sat, 3 Apr 2010 13:58:21 +1300 Subject: [PATCH] Added THIS to CALLABLE. --- lib/lexer.js | 2 +- src/lexer.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lexer.js b/lib/lexer.js index 0fe57da4..416bf55b 100644 --- a/lib/lexer.js +++ b/lib/lexer.js @@ -647,7 +647,7 @@ // Tokens which could legitimately be invoked or indexed. A opening // parentheses or bracket following these tokens will be recorded as the start // of a function invocation or indexing operation. - CALLABLE = ['IDENTIFIER', 'SUPER', ')', ']', '}', 'STRING', '@']; + CALLABLE = ['IDENTIFIER', 'SUPER', ')', ']', '}', 'STRING', '@', 'THIS']; // Tokens that indicate an access -- keywords immediately following will be // treated as identifiers. ACCESSORS = ['PROPERTY_ACCESS', 'PROTOTYPE_ACCESS', 'SOAK_ACCESS', '@']; diff --git a/src/lexer.coffee b/src/lexer.coffee index 87b68bc7..c7a17701 100644 --- a/src/lexer.coffee +++ b/src/lexer.coffee @@ -511,7 +511,7 @@ NOT_REGEX: [ # Tokens which could legitimately be invoked or indexed. A opening # parentheses or bracket following these tokens will be recorded as the start # of a function invocation or indexing operation. -CALLABLE: ['IDENTIFIER', 'SUPER', ')', ']', '}', 'STRING', '@'] +CALLABLE: ['IDENTIFIER', 'SUPER', ')', ']', '}', 'STRING', '@', 'THIS'] # Tokens that indicate an access -- keywords immediately following will be # treated as identifiers.